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.

请问M4的FPU浮点运算单元需要在CCS中设置吗,为什么软件开启FPU没用

执行一个非常复杂的浮点运算,时间是8.5秒

运算程序如下,随便写的。

for(i=0;i<100000;i++)
{
a=a+1234.56789;
b=a*9876.54321/1234.56789;
c=b/a*sin(3.14);
}

在程序中加了这两句

FPUEnable();
FPULazyStackingEnable();

之后运行时间还是8.5秒没变。

我想是不是FPU没有打开,是不是FPU需要在CCS里设置打开才行呢??求大神解答。。先谢过了

x 出现错误。请重试或与管理员联系。