.file "example2.c" .version "01.01" gcc2_compiled.: .text .align 4 .globl example_2 .type example_2,@function example_2: pushl %ebp movl %esp,%ebp subl $16,%esp pushl %esi pushl %ebx movl 8(%ebp),%ebx cmpl $2,%ebx jg .L18 movl $1,%eax jmp .L19 .p2align 4,,7 .L18: addl $-12,%esp leal -2(%ebx),%eax pushl %eax call example_2 movl %eax,%esi addl $-12,%esp leal -1(%ebx),%eax pushl %eax call example_2 addl %esi,%eax .L19: leal -24(%ebp),%esp popl %ebx popl %esi movl %ebp,%esp popl %ebp ret .Lfe1: .size example_2,.Lfe1-example_2 .section .rodata .LC0: .string "n=" .LC1: .string "%d" .LC2: .string "example_2(%d) = %d\n" .text .align 4 .globl main .type main,@function main: pushl %ebp movl %esp,%ebp subl $24,%esp addl $-12,%esp pushl $.LC0 call printf addl $-8,%esp leal -4(%ebp),%eax pushl %eax pushl $.LC1 call scanf movl -4(%ebp),%eax addl $32,%esp addl $-12,%esp pushl %eax call example_2 addl $-4,%esp pushl %eax movl -4(%ebp),%eax pushl %eax pushl $.LC2 call printf xorl %eax,%eax movl %ebp,%esp popl %ebp ret .Lfe2: .size main,.Lfe2-main .ident "GCC: (GNU) 2.95.3 20010315 (release)"