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.

[参考译文] TM4C1294NCPDT:关于 FPU 用法的阐述

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1033738/tm4c1294ncpdt-clarification-on-fpu-usage

器件型号:TM4C1294NCPDT

您好!

我需要对 FPU 进行澄清:当我尝试在两个浮点之间执行简单的乘法运算时、我看不到任何性能改进。
的执行时间、例如:

 

Fullscreen
1
float a = (float)2.1 * (float)3.2;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

为178ns @ 120MHz、无论 FPU 是否激活。

为了激活 FPU、我执行:

Fullscreen
1
2
FPUEnable();
FPULazyStackingEnable();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

我在其他浮点运算中也看到了相同的行为、启用 FPU 后性能没有提高。 为什么?
我是否需要执行任何其他配置、或者这是正确的?

此致。
Paolo