我在气体源代码中定义了一个宏。但它不是由gcc编撰的。
下面是我定义的宏。
#define MSGSCHEDULE0(index) \
movl (index*4)(%rsi) ,%eax \
bswapl eax \
movl %eax ,(index*4-272)(%rdi)下面是汇编程序消息:
错误:垃圾“`bswapl eax movl %eax”注册后
我希望在代码中使用这个宏,如下所示:
MSGSCHEDULE0(0)
MSGSCHEDULE0(1)
MSGSCHEDULE0(2)
//...
MSGSCHEDULE0(16)发布于 2019-09-03 08:53:48
用分号在线尾用分号表示气体:
#define MSGSCHEDULE0(index) \
movl (index*4)(%rsi),%eax; \
bswapl %eax; \
movl %eax,(index*4-272)(%rdi)别忘了注册的百分比符号。
https://stackoverflow.com/questions/57719536
复制相似问题