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.

Compiler/TM4C1231H6PM: Making sure the FPU is used

Part Number: TM4C1231H6PM

Tool/software: TI C/C++ Compiler

Hello,

My code involves arithmetic on "float" variables which I want run as fast as possible.

How can I make sure that the FPU does these operations (and not the integer ALU) ?

Does this happen automatically?

  • By default the FPU is used. To check, look at the "Processor Options" under the "ARM Compiler" settings in the project properties. "FPv4SPD16" selects the Cortex M4F FPU. Select "none" and the floating point operations are done without the FPU.