摘要:
Introduction
Inline Assembly is different in VC++ and gcc. VC uses Intel syntax while gcc uses AT&T syntax. Here we define the difference in syntax of AT&T and Intel's assembly.
Source and Destination Ordering
In AT&T syntax the source is always on the left, and the destination is always on the right which is opposite of the Intel's syntax.
AT&T Intel
Move ebx to eax movl %ebx, %eax mov eax, ebx
Move 100 to ebx Movl $100, %ebx Mov ebx, 100
Pref 阅读全文