Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
AnimalMuppet
8y ago
0 comments
Save
Share
I've used that several times. One more thing I want: The C/C++ code as comments in the assembler file. Is there a gcc switch for that that I don't know about?
0 comments
2 comments · 2 top-level
top
newest
oldest
zielmicha
8y ago
You can use "objdump -S" on a binary compiled with debugging symbols. (This way you can get assembly in Intel syntax with "-M intel")
klodolph
8y ago
You can use -g -Wa,-adhls and then do some post-processing, the .file and .loc directives give you what you need.
j
/
k
navigate · click thread line to collapse