Mapping C code to generated asm code

Jim Blandy jimb@red-bean.com
Thu Jan 12 00:12:00 GMT 2006


On 1/11/06, Perry Smith <pedz@easesoftware.net> wrote:
> Is there a way to get some type of debugging output that tells me
> what line of C code produced what lines of asm code?

Do the .loc directives in the .s files produced by gcc -S work for
you?  The arguments to .loc are the file number, line number, and
column number.



More information about the Gcc mailing list