3
« am: 26. January 2010, 21:56 »
main.o: file format pe-i386
Disassembly of section .text:
00000000 <_main>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
6: 83 e4 f0 and $0xfffffff0,%esp
9: b8 00 00 00 00 mov $0x0,%eax
e: 83 c0 0f add $0xf,%eax
11: 83 c0 0f add $0xf,%eax
14: c1 e8 04 shr $0x4,%eax
17: c1 e0 04 shl $0x4,%eax
1a: 89 45 f8 mov %eax,-0x8(%ebp)
1d: 8b 45 f8 mov -0x8(%ebp),%eax
20: e8 00 00 00 00 call 25 <_main+0x25>
25: e8 00 00 00 00 call 2a <_main+0x2a>
2a: c7 45 fc 05 00 00 00 movl $0x5,-0x4(%ebp)
31: 8b 45 fc mov -0x4(%ebp),%eax
34: 89 04 24 mov %eax,(%esp)
37: e8 00 00 00 00 call 3c <_main+0x3c>
3c: 89 44 24 08 mov %eax,0x8(%esp)
40: 8b 45 fc mov -0x4(%ebp),%eax
43: 89 44 24 04 mov %eax,0x4(%esp)
47: c7 04 24 00 00 00 00 movl $0x0,(%esp)
4e: e8 00 00 00 00 call 53 <_main+0x53>
53: b8 00 00 00 00 mov $0x0,%eax
58: c9 leave
59: c3 ret
5a: 90 nop
5b: 90 nop
fact.o: file format pe-i386
Disassembly of section .text:
00000000 <factorial>:
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 8b 45 08 mov 0x8(%ebp),%eax
6: 09 c0 or %eax,%eax
8: 75 07 jne 11 <recurse>
a: b8 01 00 00 00 mov $0x1,%eax
f: eb 10 jmp 21 <out>
00000011 <recurse>:
11: 48 dec %eax
12: 50 push %eax
13: e8 e8 ff ff ff call 0 <factorial>
18: 83 c4 04 add $0x4,%esp
1b: 8b 55 08 mov 0x8(%ebp),%edx
1e: 0f af c2 imul %edx,%eax
00000021 <out>:
21: 89 ec mov %ebp,%esp
23: 5d pop %ebp
24: c3 ret
25: 90 nop
26: 90 nop
27: 90 nop