.file "hello.c"
.section .rodata
.LC0:
.string "hello world!"
.LC1:
.string "helloworld!"
.LC2:
.string "hello world2!\n"
.text
.globl main
.type main, @function
main:
leal 4(%esp), %ecx
andl $-16, %esp
pushl -4(%ecx)
pushl %ebp
movl %esp, %ebp
pushl %ecx
subl $20, %esp
movl $.LC0, (%esp)
call puts
movl $.LC1, (%esp)
call puts
movl $.LC2, -8(%ebp)
movl -8(%ebp), %eax
movl %eax, (%esp)
call printf
movl $0, %eax
addl $20, %esp
popl %ecx
popl %ebp
leal -4(%ecx), %esp
ret
.size main, .-main
.ident "GCC: (GNU) 4.1.2 20080704 (Red Hat 4.1.2-46)"
.section .note.GNU-stack,"",@progbits
阅读(650) | 评论(0) | 转发(0) |