Skip to content

Instantly share code, notes, and snippets.

@eholk
Created June 21, 2011 18:26
Show Gist options
  • Select an option

  • Save eholk/1038515 to your computer and use it in GitHub Desktop.

Select an option

Save eholk/1038515 to your computer and use it in GitHub Desktop.
;; CLANG VERSION
Dump of assembler code for function _ZN7context4swapERS_:
0x00015650 <_ZN7context4swapERS_+0>: push %ebp
0x00015651 <_ZN7context4swapERS_+1>: mov %esp,%ebp
0x00015653 <_ZN7context4swapERS_+3>: sub $0x8,%esp
0x00015656 <_ZN7context4swapERS_+6>: mov 0xc(%ebp),%eax
0x00015659 <_ZN7context4swapERS_+9>: mov %eax,(%esp)
0x0001565c <_ZN7context4swapERS_+12>: call 0x156a1 <get_registers>
0x00015661 <_ZN7context3setEv+0>: add $0x8,%esp
0x00015664 <_ZN7context4swapERS_+20>: test %eax,%eax
0x00015666 <_ZN7context4swapERS_+22>: je 0x1566a <_ZN7context4swapERS_+26>
0x00015668 <_ZN7context4swapERS_+24>: pop %ebp
0x00015669 <_ZN7context4swapERS_+25>: ret
0x0001566a <_ZN7context4swapERS_+26>: pop %ebp
0x0001566b <_ZN7context4swapERS_+27>: jmp 0x156e2 <set_registers>
End of assembler dump.
;; GCC VERSION
Dump of assembler code for function _ZN7context4swapERS_:
0x0001cc76 <_ZN7context4swapERS_+0>: push %ebp
0x0001cc77 <_ZN7context4swapERS_+1>: mov %esp,%ebp
0x0001cc79 <_ZN7context4swapERS_+3>: sub $0x28,%esp
0x0001cc7c <_ZN7context4swapERS_+6>: mov 0xc(%ebp),%eax
0x0001cc7f <_ZN7context4swapERS_+9>: mov %eax,(%esp)
0x0001cc82 <_ZN7context4swapERS_+12>: call 0x1ccab <get_registers>
0x0001cc87 <_ZN7context4swapERS_+17>: mov %eax,-0xc(%ebp)
0x0001cc8a <_ZN7context4swapERS_+20>: cmpl $0x0,-0xc(%ebp)
0x0001cc8e <_ZN7context4swapERS_+24>: jne 0x1cc9b <_ZN7context4swapERS_+37>
0x0001cc90 <_ZN7context4swapERS_+26>: mov 0x8(%ebp),%eax
0x0001cc93 <_ZN7context4swapERS_+29>: mov %eax,(%esp)
0x0001cc96 <_ZN7context4swapERS_+32>: call 0x1cc62 <_ZN7context3setEv>
0x0001cc9b <_ZN7context4swapERS_+37>: leave
0x0001cc9c <_ZN7context4swapERS_+38>: ret
End of assembler dump.
Dump of assembler code for function _ZN7context3setEv:
0x0001cc62 <_ZN7context3setEv+0>: push %ebp
0x0001cc63 <_ZN7context3setEv+1>: mov %esp,%ebp
0x0001cc65 <_ZN7context3setEv+3>: sub $0x18,%esp
0x0001cc68 <_ZN7context3setEv+6>: mov 0x8(%ebp),%eax
0x0001cc6b <_ZN7context3setEv+9>: mov %eax,(%esp)
0x0001cc6e <_ZN7context3setEv+12>: call 0x1cce6 <set_registers>
0x0001cc73 <_ZN7context3setEv+17>: leave
0x0001cc74 <_ZN7context3setEv+18>: ret
End of assembler dump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment