Skip to content

Instantly share code, notes, and snippets.

@wandernauta
Created June 13, 2010 11:53
Show Gist options
  • Save wandernauta/436601 to your computer and use it in GitHub Desktop.
Save wandernauta/436601 to your computer and use it in GitHub Desktop.
int main() {
const int x = 10;
return x*2;
}
.file "foo.c"
.text
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
subl $16, %esp
movl $10, -4(%ebp)
movl -4(%ebp), %eax
addl %eax, %eax
leave
ret
.size main, .-main
.ident "GCC: (Ubuntu 4.4.3-4ubuntu5) 4.4.3"
.section .note.GNU-stack,"",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment