Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12597 Discussions

How to use hard "Float ABI" ?

corestar
New Contributor I
1,688 Views

By default, the DS-5 GCC compiler sets the GCC compiler and assembler to use "Float ABI" of "softfp". Since this generates very slow floating point code (about 10 times slower than Zynq), I tried setting it to "hard". But the errors shown below.

 

error_msg.jpg

 

default_ABI.jpg

0 Kudos
2 Replies
Fawaz_Al-Jubori
Employee
671 Views

Hello,

Can you change the compiler to armcc instead of gcc?

Please let me know if this helps.

 

Thanks

0 Kudos
corestar
New Contributor I
671 Views

I managed to change to ARM C Compiler 5 and it does in fact seem to use hardware floating point. It sets "Floating-point PCS" to "Hardware" and "--apcs=/hardfp".

 

I'm having trouble getting the FreeRTOS Cyclone V port to wort with it though.

0 Kudos
Reply