at&t

寄存器

ESP 栈指针寄存器
EBP 指向当前方法的栈底部指针
EAX 可用于返回值

常见指令

1
2
movl %esp, %eax // 把esp的值复制到eax
leal 4(%esp), %eax // 把[eax+4]的值所在地址放到eax中