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: Comments in assember output


Artur Krzysztof Szostak <artur@alice.phy.uct.ac.za> writes:

> > It should work if you also pass the -g option.
> >
> But I want the high level source with out the -g option. I want to see what 
> the assembly would look like with -O or event -O3. I basically want in the .s 
> file a comment containing the source code line and under it the generated 
> assembly code that corresponds to it. Something like what is possible with 
> VC++

I don't think there is any simple way to do this without using the -g
option.

Note that the -g option does not affect code generation in any way.
You can use -O3 with or without -g, and you will get the same code.

Ian


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