.file "Prog3.i" .version "01.01" gcc2_compiled.: .section .rodata .align 32 .LC0: .string "Geben Sie die %d. Seitenlaenge ein: " .LC1: .string "%lf" .align 32 .LC2: .string "Flaeche des zugehoerigen Quadrats: %f\n\n" .LC4: .string "quadrat(%f) = %f\n" .LC6: .string "quadrat(10.0) = %f\n\n" .LC7: .string " quadrat(%f+1.0) = %f\n" .LC8: .string "quadrat_besser(%f+1.0) = %f\n" .align 8 .LC3: .long 0x0,0x40220000 .align 8 .LC5: .long 0x0,0x40590000 .text .align 16 .globl main .type main,@function main: pushl %ebp movl %esp,%ebp subl $204,%esp pushl %edi pushl %esi pushl %ebx nop movl $0,-4(%ebp) .p2align 4,,7 .L3: cmpl $9,-4(%ebp) jle .L6 jmp .L4 .p2align 4,,7 .L6: addl $-8,%esp movl -4(%ebp),%eax pushl %eax pushl $.LC0 call printf addl $16,%esp addl $-8,%esp leal -104(%ebp),%eax movl -4(%ebp),%edx movl %edx,%ecx leal 0(,%ecx,8),%edx addl %edx,%eax pushl %eax pushl $.LC1 call scanf addl $16,%esp movl -4(%ebp),%eax movl %eax,%edx leal 0(,%edx,8),%eax leal -184(%ebp),%edx movl -4(%ebp),%ecx movl %ecx,%ebx leal 0(,%ebx,8),%ecx leal -104(%ebp),%ebx movl -4(%ebp),%esi movl %esi,%edi leal 0(,%edi,8),%esi leal -104(%ebp),%edi fldl (%ecx,%ebx) fmull (%esi,%edi) fstpl (%eax,%edx) addl $-4,%esp movl -4(%ebp),%eax movl %eax,%edx leal 0(,%edx,8),%eax leal -184(%ebp),%edx fldl (%eax,%edx) subl $8,%esp fstpl (%esp) pushl $.LC2 call printf addl $16,%esp .L5: incl -4(%ebp) jmp .L3 .p2align 4,,7 .L4: fldl .LC3 fstpl -16(%ebp) addl $-12,%esp fldl -16(%ebp) fmull -16(%ebp) subl $8,%esp fstpl (%esp) fldl -16(%ebp) subl $8,%esp fstpl (%esp) pushl $.LC4 call printf addl $32,%esp addl $-4,%esp fldl .LC5 subl $8,%esp fstpl (%esp) pushl $.LC6 call printf addl $16,%esp addl $-12,%esp fldl -16(%ebp) faddl -16(%ebp) fld1 faddp %st,%st(1) subl $8,%esp fstpl (%esp) fldl -16(%ebp) subl $8,%esp fstpl (%esp) pushl $.LC7 call printf addl $32,%esp addl $-12,%esp fld1 fldl -16(%ebp) faddp %st,%st(1) fld1 fldl -16(%ebp) faddp %st,%st(1) fmulp %st,%st(1) subl $8,%esp fstpl (%esp) fldl -16(%ebp) subl $8,%esp fstpl (%esp) pushl $.LC8 call printf addl $32,%esp xorl %eax,%eax jmp .L2 .p2align 4,,7 .L2: leal -216(%ebp),%esp popl %ebx popl %esi popl %edi movl %ebp,%esp popl %ebp ret .Lfe1: .size main,.Lfe1-main .ident "GCC: (GNU) 2.95.2 19991024 (release)"