Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

You can run gcc with the -S flag, which will dump the assembler output (so you dont have to go through gdb)

You can also use `objdump` from binutils



gcc -S is usually preferable, since you don't get all the code produced/included by the linker to get the thing running.


And using gcc -S allows you to get a few extra annotations (variable names etc.) using the -fverbose-asm flag.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: