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.

[参考译文] 编译器/TM4C1231H6PM:确保使用 FPU

Guru**** 2526700 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/750254/compiler-tm4c1231h6pm-making-sure-the-fpu-is-used

器件型号:TM4C1231H6PM

工具/软件:TI C/C++编译器

您好!

我的代码涉及"浮点"变量的算术、我希望这些变量尽快运行。

如何确保 FPU 执行这些运算(而不是整数 ALU)?

这会自动发生吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    默认情况下使用 FPU。 要进行检查、请查看工程属性中"ARM 编译器"设置下的"Processor Options"。 "FPv4SPD16"选择 Cortex M4F FPU。 选择"None"、浮点运算在没有 FPU 的情况下完成。