Skip to content

Instantly share code, notes, and snippets.

@jarun
jarun / disassemble.md
Last active June 14, 2024 18:58
Guide to disassemble

prerequisites

  • Compile the program in gcc with debug symbols enabled (-g)
  • Do NOT strip the binary
  • To generate assembly code using gcc use the -S option: gcc -S hello.c

utilities

objdump