.file "for1.c" gcc2_compiled.: ___gnu_compiled_c: .def ___main; .scl 2; .type 32; .endef .text LC0: .ascii "Enter summation number: \0" LC1: .ascii "%d\0" LC2: .ascii "Summation is %d\12\0" .align 4 .globl _main .def _main; .scl 2; .type 32; .endef _main: pushl %ebp movl %esp,%ebp subl $24,%esp call ___main movl $0,-8(%ebp) addl $-12,%esp pushl $LC0 call _printf addl $16,%esp addl $-8,%esp leal -4(%ebp),%eax pushl %eax pushl $LC1 call _scanf addl $16,%esp movl -4(%ebp),%eax movl %eax,-12(%ebp) .p2align 4,,7 L3: cmpl $0,-12(%ebp) jg L6 jmp L4 .p2align 4,,7 L6: movl -12(%ebp),%eax addl %eax,-8(%ebp) L5: decl -12(%ebp) jmp L3 .p2align 4,,7 L4: addl $-8,%esp movl -8(%ebp),%eax pushl %eax pushl $LC2 call _printf addl $16,%esp L2: leave ret .def _scanf; .scl 2; .type 32; .endef .def _printf; .scl 2; .type 32; .endef