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.

[参考译文] CC2652R:代码优化

Guru**** 2587365 points


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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1030817/cc2652r-code-optimisation

器件型号:CC2652R

大家好、

我想关闭函数的优化。

此示例不起作用:

#pragma FUNCTION_OPTIONS( function,"--opt_level=off" )
static inline void function(uint8_t byte){
    // time dependent code
}

我使用-O4优化代码的其余部分。

我的错在哪里?

此致、

Eric

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

    遗憾的是、FUNCTION_OPTIONS pragma 不能用于完全禁用用于编译函数的优化器;可以指定的最低优化级别为-opt_level=0。

    谢谢、此致、

    乔治