Skip to content

Instantly share code, notes, and snippets.

@b4284
Created October 16, 2015 16:21
Show Gist options
  • Select an option

  • Save b4284/b952b5ac4c6a5d38ac5c to your computer and use it in GitHub Desktop.

Select an option

Save b4284/b952b5ac4c6a5d38ac5c to your computer and use it in GitHub Desktop.
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