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.

[参考译文] RM57L843:内联汇编语法

Guru**** 2524480 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1279710/rm57l843-inline-assembly-syntax

器件型号:RM57L843

您好!

以下语句无法编译:asm volatile ("\tsvc #0":"r"(1);

编译器发出错误:‘#18 Expected a ")"

C/C++编译器的版本 ti-CGT-ARM_20.2.7是否接受 GCC 内联汇编完整语法?

_asm 易失性(
汇编器模板
:输出操作数
[:输入操作数
[: Clobbers ]]

提前感谢您的回复。
Marcio。