Hacker News .hn
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
niggler
on Sept 12, 2012
|
parent
|
context
|
favorite
| on:
Understanding C by learning assembly
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
tsahyt
on Sept 13, 2012
[–]
gcc -S is usually preferable, since you don't get all the code produced/included by the linker to get the thing running.
dbaupp
on Sept 13, 2012
|
parent
[–]
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:
You can also use `objdump` from binutils