Gcc 错误:垃圾'bswapl eax movl%eax';注册后
我在GAS源代码中定义了一个宏。但它不是由gcc编译的 下面是我定义的宏Gcc 错误:垃圾'bswapl eax movl%eax';注册后,gcc,assembly,macros,gnu-assembler,Gcc,Assembly,Macros,Gnu Assembler,我在GAS源代码中定义了一个宏。但它不是由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)
#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)
使用分号表示气体管线末端:
#define MSGSCHEDULE0(index) \
movl (index*4)(%rsi),%eax; \
bswapl %eax; \
movl %eax,(index*4-272)(%rdi)
别忘了登记册的百分号。谢谢,我是加油的新手。