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.

[参考译文] ARM-CGT:TI ARM CC:内联组件:半烘烤?

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1020473/arm-cgt-ti-arm-cc-inline-assembly-half-baked

器件型号:ARM-CGT

我在 TMS570xx 上 、使用 TI ARM CC v20.5xxx

难以应对 TI 的 ARM CC 内联汇编. 似乎我只能传递有限的指令、或者无法识别完整的助记符。

似乎我无法将选项传递给指令。 例如、  

asm (" DMB ");  没有抱怨

asm (" DMB sy ");  失败、不知道 什么是 SY (或任何)选项!   

但是,编译器本身的内在函数确实会插入该特定指令,所以为什么.. ?

它是如此有限,还是如何使用此 asm()内联我需要的任何/所有指令?

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

    遗憾的是、TI ARM 编译器不支持 GCC 样式的 asm 语句。  要了解支持的内容、 请在 TI ARM 编译器手册中搜索 标题为 _asm 语句的子章节。

    谢谢、此致、

    乔治