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

Ian Lance Taylor iant@google.com
Sat Jul 5 03:57:00 GMT 2008


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



More information about the Gcc-help mailing list