.file "test126.c"
.version "01.01"
gcc2_compiled.:
.section .rodata
.LC0:
.string "dd"
.LC1:
.string "cc"
.LC2:
.string "bb"
.LC3:
.string "aa"
.LC4:
.string "ff-"
.LC5:
.string "ee-"
.LC6:
.string "dd-"
.LC7:
.string "cc-"
.LC8:
.string "bb-"
.LC9:
.string "aa-"
.text
.align 4
.globl main
.type main,@function
main:
pushl %ebp
movl %esp,%ebp
subl $8,%esp
addl $-12,%esp
pushl $.LC0
pushl $.LC1
pushl $.LC2
pushl $.LC3
pushl $4
call func
addl $32,%esp
addl $-4,%esp
pushl $.LC4
pushl $.LC5
pushl $.LC6
pushl $.LC7
pushl $.LC8
pushl $.LC9
pushl $6
call func
addl $32,%esp
.L2:
movl %ebp,%esp
popl %ebp
ret
.Lfe1:
.size main,.Lfe1-main
.section .rodata
.LC10:
.string "ap\244\316%d\310\326\314\334
\244\316\260\372\277\364\244\317%s\n"
.LC11:
.string "\n"
.LC12:
.string "dup_ap\244\316%d\310\326\314
\334\244\316\260\372\277\364\244\317%s\n"
.text
.align 4
.globl func
.type func,@function
func:
pushl %ebp
movl %esp,%ebp
subl $24,%esp
leal 12(%ebp),%eax
movl %eax,-4(%ebp)
movl -4(%ebp),%eax
movl %eax,-8(%ebp)
movl $0,-16(%ebp)
.p2align 4,,7
.L4:
movl -16(%ebp),%eax
cmpl 8(%ebp),%eax
jl .L7
jmp .L5
.p2align 4,,7
.L7:
addl $-4,%esp
addl $4,-4(%ebp)
movl -4(%ebp),%eax
addl $-4,%eax
movl (%eax),%edx
pushl %edx
movl -16(%ebp),%eax
incl %eax
pushl %eax
pushl $.LC10
call printf
addl $16,%esp
.L6:
incl -16(%ebp)
jmp .L4
.p2align 4,,7
.L5:
addl $-12,%esp
pushl $.LC11
call printf
addl $16,%esp
movl $0,-16(%ebp)
.p2align 4,,7
.L8:
movl -16(%ebp),%eax
cmpl 8(%ebp),%eax
jl .L11
jmp .L9
.p2align 4,,7
.L11:
addl $-4,%esp
addl $4,-8(%ebp)
movl -8(%ebp),%eax
addl $-4,%eax
movl (%eax),%edx
pushl %edx
movl -16(%ebp),%eax
incl %eax
pushl %eax
pushl $.LC12
call printf
addl $16,%esp
.L10:
incl -16(%ebp)
jmp .L8
.p2align 4,,7
.L9:
addl $-12,%esp
pushl $.LC11
call printf
addl $16,%esp
.L3:
movl %ebp,%esp
popl %ebp
ret
.Lfe2:
.size func,.Lfe2-func
.ident "GCC: (GNU) 2.95.3
20010315 (release)"
|