This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Merged Program Listings


* John Klingler:

> I can't find a way to get gcc to output an assembler listing merged with 
> the corresponding C code.
>
> Is this something gcc can't do?

"objdump --disassemble --source --reloch" on the object file works, at
least at low optimization levels.  At higher ones, there is no close
correspondence between generated assembler and source code lines,
anyway.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]