Created
January 10, 2013 16:05
-
-
Save bkerley/4503224 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> otool -tv ./hello | |
./hello: | |
(__TEXT,__text) section | |
start: | |
0000000100000edc pushq $0x00 | |
0000000100000ede movq %rsp,%rbp | |
0000000100000ee1 andq $0xf0,%rsp | |
0000000100000ee5 movq 0x08(%rbp),%rdi | |
0000000100000ee9 leaq 0x10(%rbp),%rsi | |
0000000100000eed movl %edi,%edx | |
0000000100000eef addl $0x01,%edx | |
0000000100000ef2 shll $0x03,%edx | |
0000000100000ef5 addq %rsi,%rdx | |
0000000100000ef8 movq %rdx,%rcx | |
0000000100000efb jmp 0x100000f01 | |
0000000100000efd addq $0x08,%rcx | |
0000000100000f01 cmpq $0x00,(%rcx) | |
0000000100000f05 jne 0x100000efd | |
0000000100000f07 addq $0x08,%rcx | |
0000000100000f0b callq 0x100000f18 | |
0000000100000f10 movl %eax,%edi | |
0000000100000f12 callq 0x100000f30 | |
0000000100000f17 hlt | |
_main: | |
0000000100000f18 pushq %rbp | |
0000000100000f19 movq %rsp,%rbp | |
0000000100000f1c leaq 0x0000003d(%rip),%rdi | |
0000000100000f23 callq 0x100000f36 | |
0000000100000f28 movl $0x00000000,%eax | |
0000000100000f2d leave | |
0000000100000f2e ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment