.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)"
|