Skip to content

Instantly share code, notes, and snippets.

@iam-vipul
Created January 22, 2024 18:04
Show Gist options
  • Save iam-vipul/7694a53747f2fa58019be24045604e0d to your computer and use it in GitHub Desktop.
Save iam-vipul/7694a53747f2fa58019be24045604e0d to your computer and use it in GitHub Desktop.
c-program
# compile the code to generate the binary
gcc -o myprogram myprogram.c
# run the progrma
./myprogram
# inspect the binary
objdump -d myprogram
# try to read through the machine code instructions
# trace the system calls of our program
strace ./myprogram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment