Skip to content

Comment on The Art of Assembly Language (1996)parent

Comments

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?

You can use "objdump -S" on a binary compiled with debugging symbols. (This way you can get assembly in Intel syntax with "-M intel")

You can use -g -Wa,-adhls and then do some post-processing, the .file and .loc directives give you what you need.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.