.file "a.c"
.text
.type my_print1,@function
my_print1:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
subl $8, %esp
pushl 12(%ebp)
pushl 8(%ebp)
call fprintf
addl $16, %esp
leave
ret
.Lfe1:
.size my_print1,.Lfe1-my_print1
.type my_print2,@function
my_print2:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
leal 16(%ebp), %eax
movl %eax, -8(%ebp)
pushl -8(%ebp)
pushl 12(%ebp)
pushl $1024
pushl $msg
call vsnprintf
addl $16, %esp
movl %eax, -4(%ebp)
subl $8, %esp
pushl $msg
pushl 8(%ebp)
call fprintf
addl $16, %esp
leave
ret
.Lfe2:
.size my_print2,.Lfe2-my_print2
.section .rodata
.LC0:
.string "char print"
.LC1:
.string "%s int.%d \n"
.text
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
subl %eax, %esp
pushl $3
pushl $.LC0
pushl $.LC1
pushl stderr
call my_print1
addl $16, %esp
pushl $3
pushl $.LC0
pushl $.LC1
pushl stderr
call my_print2
addl $16, %esp
movl $0, %eax
leave
ret
.Lfe3:
.size main,.Lfe3-main
.local msg
.comm msg,1024,32
.ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
|