This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear expert:
I am using TMS320F280025.I open fpu mode by changing settings in Properties as following:
However,after I compile the projects,there are lots of performance advice to remind me to changedoubles to floats for improved performance in FPU32-mode. The description as following:
The code where advice takes place is as following:
I have once tried to add IQmath and FPU32_eabi to projects:
I wonder that whether I missed some steps and I also wonder that whether the IQmath_fpu32 and rts2800_fpu32 could meet the requirements of the advice?
Hi,
Please add "F" suffix to all float constants. For example, if you have 2.0 * var, please update that to 2.0F. The EABI compiler will treat 2.0 as 64 bit float constant and uses 64 bit floating operations, Since this device does not have FPU64 accelerator, these operations will be time consuming. Adding the "F" suffix makes the compiler treat 2.0 as 32-bit float.
Please refer to this thread: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/987535/tms320f28379d-coff-to-eabi-project-with-stdlib-h-included-double-to-float-conversion
Hope this helps.
-Shantanu