This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to have gcc generate assembler code with C source listed?
- From: Ian Lance Taylor <iant at google dot com>
- To: Bob Plantz <plantz at cds1 dot net>
- Cc: Andrew Haley <aph at redhat dot com>, "\"Chen" (é) Jun (å)\ " <chjfth at gmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 04 Jul 2008 16:04:00 -0700
- Subject: Re: How to have gcc generate assembler code with C source listed?
- References: <486DEC50.90603@gmail.com> <486DF378.8000705@redhat.com> <1215187695.6077.6.camel@bob-desktop>
Bob Plantz <plantz@cds1.net> writes:
> Can you tell me where .loc is documented?
In the assembler manual.
> 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.
1 is the file number--it corresponds to a .file directive somewhere.
0 is the column number.
Ian