Created
July 26, 2018 04:28
-
-
Save rosehgal/b123c43b56eb9cd64f2163ffe1d5f8c5 to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
Understand how the fucntion call look like in assembly. | |
gcc -m32 function_call.c -o fucntion_call -fno-stack-protector | |
*/ | |
#include <stdio.h> | |
#include <unistd.h> | |
void foo(){ | |
printf("Printing from foo"); | |
} | |
int main(){ | |
int x; | |
foo(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment