Created
October 16, 2015 16:21
-
-
Save b4284/b952b5ac4c6a5d38ac5c 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
| int plus1(int x) { | |
| return x+1; | |
| } | |
| int main() { | |
| return plus1(1); | |
| } | |
| 00000000004004b6 <plus1>: | |
| 4004b6: 55 push %rbp | |
| 4004b7: 48 89 e5 mov %rsp,%rbp | |
| 4004ba: 89 7d fc mov %edi,-0x4(%rbp) | |
| 4004bd: 8b 45 fc mov -0x4(%rbp),%eax | |
| 4004c0: 83 c0 01 add $0x1,%eax | |
| 4004c3: 5d pop %rbp | |
| 4004c4: c3 retq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment