Line | |
---|
1 | .file "hello.c"
|
---|
2 | .section .rodata
|
---|
3 | .LC0:
|
---|
4 | .string "Hello world! (%d)\n"
|
---|
5 | .text
|
---|
6 | .globl main
|
---|
7 | .type main, @function
|
---|
8 | main:
|
---|
9 | .LFB0:
|
---|
10 | .cfi_startproc
|
---|
11 | pushl %ebp
|
---|
12 | .cfi_def_cfa_offset 8
|
---|
13 | .cfi_offset 5, -8
|
---|
14 | movl %esp, %ebp
|
---|
15 | .cfi_def_cfa_register 5
|
---|
16 | andl $-16, %esp
|
---|
17 | subl $32, %esp
|
---|
18 | movl $0, 28(%esp)
|
---|
19 | jmp .L2
|
---|
20 | .L3:
|
---|
21 | movl 28(%esp), %eax
|
---|
22 | addl $1, %eax
|
---|
23 | movl %eax, 4(%esp)
|
---|
24 | movl $.LC0, (%esp)
|
---|
25 | call printf
|
---|
26 | movl $1, (%esp)
|
---|
27 | call sleep
|
---|
28 | addl $1, 28(%esp)
|
---|
29 | .L2:
|
---|
30 | cmpl $9, 28(%esp)
|
---|
31 | jle .L3
|
---|
32 | movl $0, (%esp)
|
---|
33 | call exit
|
---|
34 | .cfi_endproc
|
---|
35 | .LFE0:
|
---|
36 | .size main, .-main
|
---|
37 | .ident "GCC: (Debian 4.7.2-5) 4.7.2"
|
---|
38 | .section .note.GNU-stack,"",@progbits
|
---|
Note:
See
TracBrowser
for help on using the repository browser.