Skip to content

Instantly share code, notes, and snippets.

@rosehgal
Created July 26, 2018 04:28
Show Gist options
  • Save rosehgal/b123c43b56eb9cd64f2163ffe1d5f8c5 to your computer and use it in GitHub Desktop.
Save rosehgal/b123c43b56eb9cd64f2163ffe1d5f8c5 to your computer and use it in GitHub Desktop.
/*
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