Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Nios Floating point emulation

Can I use floating point emulation library without worrying about compatibility issues in a MicroC/OS-II multitasking environment?

I remember some issues with MicroC/OS-II back in 1999 running under 186 CPU and Borland compilers. It was where emulation library was overwritting 384 bytes of the beginning of the Data Segment with its own variables. It made floating point functions reentrant, since they did not use global variables but variables on stack, but caused problems with task switching. The MicroC/OS-II had to be modified to work with floating point emulation library.

I am talking about this app note: http://www.ucos-ii.com/downloads/appnotes/an1001.pdf (http://www.ucos-ii.com/downloads/appnotes/an1001.pdf)

Does it apply to Nios compiler ? Where can I find some documents to C compiler and linker used for Nios ?

I was wondering if the current version of MicroC/OS-II works fine with Nios II tools or I should still be carefull using floating point in multiple tasks.
No RepliesBe the first to reply