📄 t
字号:
test.o: file format pe-i386Disassembly of section .text:00000000 <_main>:extern int a(int b);
extern int b(int a,int d);
void main()
{
0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 53 push %ebx 4: 83 ec 14 sub $0x14,%esp 7: 83 e4 f0 and $0xfffffff0,%esp a: b8 00 00 00 00 mov $0x0,%eax f: 89 45 f4 mov %eax,0xfffffff4(%ebp) 12: 8b 45 f4 mov 0xfffffff4(%ebp),%eax 15: e8 00 00 00 00 call 1a <_main+0x1a> 1a: e8 00 00 00 00 call 1f <_main+0x1f> int aa = 0;
1f: c7 45 f8 00 00 00 00 movl $0x0,0xfffffff8(%ebp)
aa += a(3) + b(1,2);
26: c7 04 24 03 00 00 00 movl $0x3,(%esp) 2d: e8 00 00 00 00 call 32 <_main+0x32> 32: 89 c3 mov %eax,%ebx 34: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp) 3b: 00 3c: c7 04 24 01 00 00 00 movl $0x1,(%esp) 43: e8 00 00 00 00 call 48 <_main+0x48> 48: 8d 14 18 lea (%eax,%ebx,1),%edx 4b: 8d 45 f8 lea 0xfffffff8(%ebp),%eax 4e: 01 10 add %edx,(%eax) printf("aa = %d \n",aa);
50: 8b 45 f8 mov 0xfffffff8(%ebp),%eax 53: 89 44 24 04 mov %eax,0x4(%esp) 57: c7 04 24 00 00 00 00 movl $0x0,(%esp) 5e: e8 00 00 00 00 call 63 <_main+0x63>
return ;
} 63: 8b 5d fc mov 0xfffffffc(%ebp),%ebx 66: c9 leave 67: c3 ret 68: 90 nop 69: 90 nop 6a: 90 nop 6b: 90 nop 6c: 90 nop 6d: 90 nop 6e: 90 nop 6f: 90 nop a.o: file format pe-i386Disassembly of section .text:00000000 <_a>:int a();
int a(int b)
{
0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 0c sub $0xc,%esp volatile int aa = 1 ;
6: c7 45 fc 01 00 00 00 movl $0x1,0xfffffffc(%ebp) volatile int bb = 1 ;
d: c7 45 f8 01 00 00 00 movl $0x1,0xfffffff8(%ebp) volatile int c ;
c = aa + bb + b;
14: 8b 55 fc mov 0xfffffffc(%ebp),%edx 17: 8b 45 f8 mov 0xfffffff8(%ebp),%eax 1a: 8d 04 10 lea (%eax,%edx,1),%eax 1d: 03 45 08 add 0x8(%ebp),%eax 20: 89 45 f4 mov %eax,0xfffffff4(%ebp)
return c ;
23: 8b 45 f4 mov 0xfffffff4(%ebp),%eax} 26: c9 leave 27: c3 ret 28: 90 nop 29: 90 nop 2a: 90 nop 2b: 90 nop 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop b.o: file format pe-i386Disassembly of section .text:00000000 <_b>:int b(int a,int d)
{
0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 04 sub $0x4,%esp volatile int c = 3;
6: c7 45 fc 03 00 00 00 movl $0x3,0xfffffffc(%ebp)
c = c * d + a;
d: 8b 45 fc mov 0xfffffffc(%ebp),%eax 10: 0f af 45 0c imul 0xc(%ebp),%eax 14: 03 45 08 add 0x8(%ebp),%eax 17: 89 45 fc mov %eax,0xfffffffc(%ebp)
return c ;
1a: 8b 45 fc mov 0xfffffffc(%ebp),%eax} 1d: c9 leave 1e: c3 ret 1f: 90 nop c.o: file format pe-i386Disassembly of section .text:00000000 <_b>:int a();
int a(int b)
{
0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 04 sub $0x4,%esp volatile int aa = 1 ;
6: c7 45 fc 03 00 00 00 movl $0x3,0xfffffffc(%ebp) volatile int bb = 1 ;
d: 8b 45 fc mov 0xfffffffc(%ebp),%eax 10: 0f af 45 0c imul 0xc(%ebp),%eax volatile int c ;
c = aa + bb + b;
14: 03 45 08 add 0x8(%ebp),%eax 17: 89 45 fc mov %eax,0xfffffffc(%ebp) 1a: 8b 45 fc mov 0xfffffffc(%ebp),%eax 1d: c9 leave 1e: c3 ret 1f: 90 nop 00000020 <_a>: 20: 55 push %ebp 21: 89 e5 mov %esp,%ebp
return c ;
23: 83 ec 0c sub $0xc,%esp} 26: c7 45 fc 01 00 00 00 movl $0x1,0xfffffffc(%ebp) 2d: c7 45 f8 01 00 00 00 movl $0x1,0xfffffff8(%ebp) 34: 8b 55 fc mov 0xfffffffc(%ebp),%edx 37: 8b 45 f8 mov 0xfffffff8(%ebp),%eax 3a: 8d 04 10 lea (%eax,%edx,1),%eax 3d: 03 45 08 add 0x8(%ebp),%eax 40: 89 45 f4 mov %eax,0xfffffff4(%ebp) 43: 8b 45 f4 mov 0xfffffff4(%ebp),%eax 46: c9 leave 47: c3 ret 48: 90 nop 49: 90 nop 4a: 90 nop 4b: 90 nop 4c: 90 nop 4d: 90 nop 4e: 90 nop 4f: 90 nop
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -