.file "test.c" .globl x .data .align 4 .type x, @object .size x, 4 x: .long 1234 .text .globl test .type test, @function test: pushl %ebp movl %esp, %ebp subl $4, %esp movl $0, -4(%ebp) movl $0, x .L2: cmpl $99, x jle .L5 jmp .L3 .L5: movl x, %edx leal -4(%ebp), %eax addl %edx, (%eax) incl x jmp .L2 .L3: movl -4(%ebp), %eax leave ret .size test, .-test .section .rodata .LC0: .string "Hello world\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 subl $12, %esp pushl $.LC0 call printf addl $16, %esp call test leave ret .size main, .-main .ident "GCC: (GNU) 3.3 20030226 (prerelease) (SuSE Linux)"