Skip to content

Instantly share code, notes, and snippets.

@DavidQL
Created May 13, 2013 17:18
Show Gist options
  • Save DavidQL/5569896 to your computer and use it in GitHub Desktop.
Save DavidQL/5569896 to your computer and use it in GitHub Desktop.
Dump of assembler code for function main:
0x0000000100000e20 <main+0>: push %rbp
0x0000000100000e21 <main+1>: mov %rsp,%rbp
0x0000000100000e24 <main+4>: sub $0x20,%rsp
0x0000000100000e28 <main+8>: mov 0x1e9(%rip),%rdi # 0x100001018
0x0000000100000e2f <main+15>: movl $0x0,-0x4(%rbp)
0x0000000100000e36 <main+22>: movl $0x1,-0x8(%rbp)
0x0000000100000e3d <main+29>: movl $0x2,-0xc(%rbp)
0x0000000100000e44 <main+36>: mov -0x8(%rbp),%eax
0x0000000100000e47 <main+39>: add -0xc(%rbp),%eax
0x0000000100000e4a <main+42>: mov %eax,%esi
0x0000000100000e4c <main+44>: callq 0x100000ecc <dyld_stub__ZNSolsEi>
0x0000000100000e51 <main+49>: lea 0xc4(%rip),%rsi # 0x100000f1c
0x0000000100000e58 <main+56>: mov %rax,%rdi
0x0000000100000e5b <main+59>: callq 0x100000ed8 <dyld_stub__ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc>
0x0000000100000e60 <main+64>: mov $0x0,%ecx
0x0000000100000e65 <main+69>: mov %rax,-0x18(%rbp)
0x0000000100000e69 <main+73>: mov %ecx,%eax
0x0000000100000e6b <main+75>: add $0x20,%rsp
0x0000000100000e6f <main+79>: pop %rbp
0x0000000100000e70 <main+80>: retq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment