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.

[参考译文] TMS320F28388D:如何防止函数被内联

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1659078/tms320f28388d-how-to-prevent-a-function-from-being-inlined

器件型号: TMS320F28388D

您好、

我创建了一个可从其他函数调用的函数。  我不希望优化器将其内联。  是否有 pragma 或某些不允许内联一个函数的指令?

谢谢您、

教育

 

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

    尊敬的 Ed:
    有 pragma FUNC_CANNOT_INLINE

    更多信息、请参阅  
    TMS320C28x 优化 C/C++编译器 v25.11.0.LTS 用户指南


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

    很棒!  谢谢你、Lakshya。

    教育