Skip to content

Instantly share code, notes, and snippets.

/bb.c

Created January 24, 2016 08:12
Show Gist options
  • Save anonymous/95e284285fc3f558c082 to your computer and use it in GitHub Desktop.
Save anonymous/95e284285fc3f558c082 to your computer and use it in GitHub Desktop.
void hi(int a, int b) {
4004ed: 55 push %rbp
4004ee: 48 89 e5 mov %rsp,%rbp
4004f1: 89 7d ec mov %edi,-0x14(%rbp)
4004f4: 89 75 e8 mov %esi,-0x18(%rbp)
int i = 3;
4004f7: c7 45 fc 03 00 00 00 movl $0x3,-0x4(%rbp)
return;
4004fe: 90 nop
}
4004ff: 5d pop %rbp
400500: c3 retq
0000000000400501 <main>:
int main(int argc, char *argv[]) {
400501: 55 push %rbp
400502: 48 89 e5 mov %rsp,%rbp
400505: 48 83 ec 10 sub $0x10,%rsp
400509: 89 7d fc mov %edi,-0x4(%rbp)
40050c: 48 89 75 f0 mov %rsi,-0x10(%rbp)
hi(1, 2);
400510: be 02 00 00 00 mov $0x2,%esi
400515: bf 01 00 00 00 mov $0x1,%edi
40051a: e8 ce ff ff ff callq 4004ed <hi>
return 0;
40051f: b8 00 00 00 00 mov $0x0,%eax
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment