C

C

Werror overwrite make CFLAGS=-Wno-error

Include path (print)

gcc -xc -E -v -
gcc -xc++ -E -v -

Macro

Notes

Random


#include <time.h>
srand(time(NULL));
# Set seed
rand();
# Get Random

Calling conventions, function prototype

Usercall

int __usercall fct1@<eax>(int p1@<ecx>, int p2@<edx>, int p3) {return p1 + p2 + p3;}

Stdcall

The called function is cleaning the stack

Cdecl

The caller is correcting the stack (because HE knows : printf)

Fastcall (x64)

Rcx contains first var. The callee is cleaning the pile