Created
June 13, 2010 11:53
-
-
Save wandernauta/436601 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 main() { | |
const int x = 10; | |
return x*2; | |
} |
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
.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