Comment on The Art of Assembly Language (1996)parentComments−AnimalMuppet8yI'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?−zielmicha8yYou can use "objdump -S" on a binary compiled with debugging symbols. (This way you can get assembly in Intel syntax with "-M intel")−klodolph8yYou can use -g -Wa,-adhls and then do some post-processing, the .file and .loc directives give you what you need.
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.