- 论坛徽章:
- 0
|
.file "l.c"
.section .rdata,"dr"
LC0:
.ascii "happy hello!\12\0"
LC1:
.ascii "%s\0"
.text
.globl _f
.def _f; .scl 2; .type 32; .endef
_f:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl $LC0, 4(%esp)
movl $LC1, (%esp)
call _printf
leave
ret
.globl _atmp
.data
.align 4
_atmp:
.long _f
.def ___main; .scl 2; .type 32; .endef
.text
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
addl $15, %eax
addl $15, %eax
shrl $4, %eax
sall $4, %eax
movl %eax, -8(%ebp)
movl -8(%ebp), %eax
call __alloca
call ___main
movl _atmp, %edx
movb $-1, %al
andb %dl, %al
movb %al, 1(%ebp)
leave
ret
.def _printf; .scl 2; .type 32; .endef
请教高人,代码中红色部分的含义是什么,多谢了! |
|