|
我学习汇编ing, 写了一个hello.c 用 -S 生成以下文件,但是又看不大懂,希望那位好心的兄弟帮我写一下注释,谢了先~~~~~~~~~~~~~~
.file "hello.c"
.section .rodata
.LC0:
.string "hello"
.text
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
subl %eax, %esp
subl $12, %esp
pushl $.LC0
call printf
addl $16, %esp
leave
ret
.Lfe1:
.size main,.Lfe1-main |
|