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.

[参考译文] 编译器/TMS320C6678:NaN 通过日志计算输出。

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/724592/compiler-tms320c6678-nan-is-output-by-log-calculation

器件型号:TMS320C6678

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

我正在 C6678上进行开发。

我在每个内核上调用了以下函数。

void Func ()
{
float temp1 = log ((double) 2.0f);
platform_write ("1:%e\n"、temp1);
float temp2 =(float) log (2.0f);
platform_write ("2:%e\n"、temp2);
float temp3 = logf (2.0f);
platform_write ("3:"4
:
%e、temp4);platform_temp4 ("4:"、temp4);platform_temp4 (temp3:\n"temp4:"(temp4)

*"platform_write"函数是我自己的 printf 函数。

首次调用函数的结果。
内核1至8

1:6.931472e-01
2:6.931472e-01
3:6.931472e-01
4:6.931472e-01

第二次调用函数的结果。

内核1至7

1:6.931472e-01
2:6.931472e-01
3:6.931472e-01
4:6.931472e-01 

内核8

1:nan
2:nan
3:6.931472e-01
4:nan

为什么只有在第二次调用函数时内核8才变为 nan?

CCS 版本:6.2.0
处理器 SDK 版本:03.01.00.06

1:南

2:南

3:6.931472e-01

4:南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    抱歉、最后4行没有意义。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    我已通知 RTOS 团队。 他们将直接在此处发布反馈。

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