How to have gcc generate assembler code with C source listed?
Bob Plantz
plantz@cds1.net
Fri Jul 4 16:09:00 GMT 2008
On Fri, 2008-07-04 at 10:55 +0100, Andrew Haley wrote:
> Chen (é) Jun (å) wrote:
> > Is there any options to enable this? If yes, since what version of gcc
> > is it supported?
>
> All of them.
>
> -g -Wa,-adhls
Very nice. I didn't know about this.
Can you tell me where .loc is documented?
When I see something like:
.loc 1 15 0
in the assembly language, I easily figured out that 15 is the line
number in the original C code. But it would be nice to know what the
other two numbers mean.
If anyone is working in 64 bit and doesn't need to see the unwind table,
-fno-asynchronous-unwind-tables will clean up your listing.
Bob
More information about the Gcc-help
mailing list