.file "test.c" .intel_syntax .text .globl test .type test, @function test: push %ebp mov %ebp, %esp sub %esp, 8 mov DWORD PTR [%ebp-8], 0 mov DWORD PTR [%ebp-4], 0 .L2: cmp DWORD PTR [%ebp-4], 99 jle .L5 jmp .L3 .L5: mov %eax, DWORD PTR [%ebp-4] lea %edx, [%ebp-8] add DWORD PTR [%edx], %eax lea %eax, [%ebp-4] inc DWORD PTR [%eax] jmp .L2 .L3: mov %eax, DWORD PTR [%ebp-8] leave ret .size test, .-test .section .rodata .LC0: .string "Hello world\n" .text .globl main .type main, @function main: push %ebp mov %ebp, %esp sub %esp, 8 and %esp, -16 mov %eax, 0 sub %esp, %eax sub %esp, 12 push OFFSET FLAT:.LC0 call printf add %esp, 16 call test leave ret .size main, .-main .ident "GCC: (GNU) 3.3 20030226 (prerelease) (SuSE Linux)"