1 .file "test.c"
2 .section .rodata
3 .LC0:
4 .string "address of i = %u\n"
5 .LC1:
6 .string "input please"
7 .LC2:
8 .string "%d"
9 .LC3:
10 .string "%d\n"
11 .text
12 .globl main
13 .type main, @function
14 main:
15 leal 4(%esp), %ecx
16 andl $-16, %esp
17 pushl -4(%ecx)
18 pushl %ebp
19 movl %esp, %ebp
20 pushl %ecx
21 subl $36, %esp
22 leal -5(%ebp), %eax
23 leal -12(%ebp), %edx
24 subl %edx, %eax
25 movl %eax, 4(%esp)
26 movl $.LC0, (%esp)
27 call printf
28 movl $0, -12(%ebp)
29 jmp .L2
30 .L3:
31 movl $.LC1, (%esp)
32 call puts
33 leal -5(%ebp), %eax
34 movl %eax, 4(%esp)
35 movl $.LC2, (%esp)
36 call scanf
37 movl -12(%ebp), %eax
38 movl %eax, 4(%esp)
39 movl $.LC3, (%esp)
40 call printf
41 movl -12(%ebp), %eax
42 addl $1, %eax
43 movl %eax, -12(%ebp)
44 .L2:
45 movl -12(%ebp), %eax
test
最新推荐文章于 2024-08-26 08:12:22 发布