命令 gcc -S a.i -o a.s |
.file "a.c" |
.globl _N |
.data |
.align 4 |
_N: |
.long 100 |
.def ___main; .scl 2; .type 32; .endef |
.section .rdata,"dr" |
LC0: |
.ascii "build test N=%d\12\0" |
LC1: |
.ascii "abc\0" |
.text |
.globl _main |
.def _main; .scl 2; .type 32; .endef |
_main: |
LFB10: |
.cfi_startproc |
pushl %ebp |
.cfi_def_cfa_offset 8 |
.cfi_offset 5, -8 |
movl %esp, %ebp |
.cfi_def_cfa_register 5 |
andl $-16, %esp |
subl $16, %esp |
call ___main |
movl _N, %eax |
movl %eax, 4(%esp) |
movl $LC0, (%esp) |
call _printf |
movl $LC1, (%esp) |
call _printStr |
call _getchar |
movl $0, %eax |
leave |
.cfi_restore 5 |
.cfi_def_cfa 4, 4 |
ret |
.cfi_endproc |
LFE10: |
.ident "GCC: (GNU) 5.3.0" |
.def _printf; .scl 2; .type 32; .endef |
.def _printStr; .scl 2; .type 32; .endef |
.def _getchar; .scl 2; .type 32; .endef |