我们开发嵌入式PowerPC架构的代码。
我们的编译器支持一种称为asm宏的东西。
以下是手册的摘录:
asm Macro Syntax
An asm macro definition looks much like a function definition, including a return type and parameter list, and function body.
The syntax is:
asm [volatile] [return-type] macro-name ( [ parameter-list ] ) { % storage-mode-list (must start in column 1) ! register-list (“!” must be first non-whitespace) asm-code } (must start in column 1
这是标准C吗?我的编译器手册上没有将此列为扩展。
在第一个答案之后澄清:
我知道 { }
中的部分不是标准C所定义的。我指的是在 asm
之后、闭合)
之前结构类似函数的内容。