How to disassemble a binary executable in Linux to get the assembly code?
I don’t think gcc has a flag for it, since it’s primarily a compiler, but another of the GNU development tools does. objdump takes a -d/–disassemble flag: $ objdump -d /path/to/binary The disassembly looks like this: 080483b4 <main>: 80483b4: 8d 4c 24 04 lea 0x4(%esp),%ecx 80483b8: 83 e4 f0 and $0xfffffff0,%esp 80483bb: ff 71 fc … Read more