Altera_Forum
Honored Contributor
19 years agoNios 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.