Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int f() {
- int i = 5;
- return (i*i--) - (--i*i*i++) + (++i);
- }
- 080483e4 <f>:
- 80483e4: 55 push %ebp
- 80483e5: 89 e5 mov %esp,%ebp
- 80483e7: 83 ec 10 sub $0x10,%esp
- 80483ea: c7 45 fc 05 00 00 00 movl $0x5,-0x4(%ebp)
- 80483f1: 8b 45 fc mov -0x4(%ebp),%eax
- 80483f4: 89 c2 mov %eax,%edx
- 80483f6: 0f af 55 fc imul -0x4(%ebp),%edx ; edx = 5*5 = 25
- 80483fa: 83 6d fc 01 subl $0x1,-0x4(%ebp) ; i = 4
- 80483fe: 8b 45 fc mov -0x4(%ebp),%eax
- 8048401: 0f af 45 fc imul -0x4(%ebp),%eax
- 8048405: 0f af 45 fc imul -0x4(%ebp),%eax ; eax = 4*4*4 = 64
- 8048409: 89 d1 mov %edx,%ecx
- 804840b: 29 c1 sub %eax,%ecx ; ecx = 25 - 64 = -39
- 804840d: 89 c8 mov %ecx,%eax
- 804840f: 83 45 fc 01 addl $0x1,-0x4(%ebp) ; i = 5
- 8048413: 03 45 fc add -0x4(%ebp),%eax ; eax = -39 + 5 = -34
- 8048416: 83 6d fc 01 subl $0x1,-0x4(%ebp)
- 804841a: 83 45 fc 01 addl $0x1,-0x4(%ebp)
- 804841e: c9 leave
- 804841f: c3 ret ; return -34
Add Comment
Please, Sign In to add comment