Re: How to have gcc generate assembler code with C source listed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux