2️⃣ Binary Analysis
4 Stages of Compilation

1. Preprocessing

2. Compilation

3. Assembly

Linking

Last updated





Last updated
#include<stdio.h>
#define FORMAT_STRING "%s"
#define MESSAGE "Hello, world!\n"
int main(int argc, char **agrv)
{
printf(FORMAT_STRING, MESSAGE);
return 0;
}$ gcc -E -P <test.c>$ gcc -S -masm=intel test.c $ gcc -c test.c$ file test.ogcc <test.c>file a.out