This is the mail archive of the gcc@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: C source interspersed through assembly output


There may be better ways...

Use "-g" to keep the line numbers.

Then in the .s file, you will see the line number directives:

.stabn 68,0,9,.LM4-main
            ^
            |
         line number

Rayson


> I'm a bit surprised that I can't find any command option in the doco 
> to intersperse the originating source code as a comment in the 
> assembly dump.  I'm trying to check the validity of my assembly 
> output and its kinda hard to track stuff back to the original C 
> without this feature.


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


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