工具/软件:Code Composer Studio
早上好、
我将 msp430fr6922与 CCS 7结合使用。
我的优化有问题-它被剪切为"if"、我附加了带有代码和反汇编的屏幕。
如果我将优化设置为关闭(OPToff)、代码工作正常。
如果我将整个程序 opt 设置为0 (OPTeverto0)、"while and if"将被截断。
如果我将整个程序选项设置为1 (OPTevert1)、则"if"将被截断。
如何将优化设置为正常工作?
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.
工具/软件:Code Composer Studio
早上好、
我将 msp430fr6922与 CCS 7结合使用。
我的优化有问题-它被剪切为"if"、我附加了带有代码和反汇编的屏幕。
如果我将优化设置为关闭(OPToff)、代码工作正常。
如果我将整个程序 opt 设置为0 (OPTeverto0)、"while and if"将被截断。
如果我将整个程序选项设置为1 (OPTevert1)、则"if"将被截断。
如何将优化设置为正常工作?
您好!
[引用 user5163417]Dissasembly 代码与 标记的命令不同。 为什么?[/报价]
不同的优化级别。
[报价 USER="user5163417"]我能否获得提示,哪里是所有反汇编命令的基本概述?
http://www.ti.com/lit/ug/slau367o/slau367o.pdf
user5163417 说:为什么在反汇编时会剪掉 C 编辑器中的某些行?
在这个简单的例子中、我们可以讨论这是否是一个错误。
但是、在某些情况下、优化会更改代码、使语句和循环消失。
请参阅与易失性密钥相关的示例。