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/MSP432E401Y:不包括常规优化级别的例程

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/945651/ccs-msp432e401y-excluding-a-routine-from-the-general-optimization-level

器件型号:MSP432E401Y

工具/软件:Code Composer Studio

你(们)好

我的代码中有一些例程、我希望避免对它们应用任何优化、但我希望使项目的其余部分保持优化。

是否有方法可以告诉 CCS 不要优化特定例程/代码(类似于 pragma、告诉编译器停止优化、然后在所需部分的末尾继续优化?