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.

[参考译文] CCS:表达式窗口--找不到标识符?

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/955804/ccs-expressions-window-----identifier-not-found

工具/软件:Code Composer Studio

有人能告诉我为什么 TST 不会在表达式窗口中填充值,而是"找不到标识符:TST"?

#include 
#include 

void main (void)
{
char a[]="Hello";

unsigned int TST;
TST = strlen (a);
如果(TST < 8)
LPM3;
其他
LPM0;
}

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

    您好!

    [引用 user="Steve Wenner"]有人能否告诉我为什么 TST 不会在表达式窗口中填充值,而是"找不到标识符:TST"?

    检查项目编译器优化设置。 您可能具有寄存器级优化(-O0)或更高版本。

    谢谢

    Ki