Skip to content

Instantly share code, notes, and snippets.

/aa.c

Created January 24, 2016 08:11
Show Gist options
  • Save anonymous/88ad40d047d19827b202 to your computer and use it in GitHub Desktop.
Save anonymous/88ad40d047d19827b202 to your computer and use it in GitHub Desktop.
void hi(int a, int b) {
80483ed: 55 push %ebp
80483ee: 89 e5 mov %esp,%ebp
80483f0: 83 ec 10 sub $0x10,%esp
int i = 3;
80483f3: c7 45 fc 03 00 00 00 movl $0x3,-0x4(%ebp)
return;
80483fa: 90 nop
}
80483fb: c9 leave
80483fc: c3 ret
080483fd <main>:
int main(int argc, char *argv[]) {
80483fd: 55 push %ebp
80483fe: 89 e5 mov %esp,%ebp
8048400: 83 ec 08 sub $0x8,%esp
hi(1, 2);
8048403: c7 44 24 04 02 00 00 movl $0x2,0x4(%esp)
804840a: 00
804840b: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8048412: e8 d6 ff ff ff call 80483ed <hi>
return 0;
8048417: 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