This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Mapping C code to generated asm code
- From: Jim Blandy <jimb at red-bean dot com>
- To: Perry Smith <pedz at easesoftware dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 11 Jan 2006 14:42:43 -0800
- Subject: Re: Mapping C code to generated asm code
- References: <3B762F9F-0F33-4DF0-8CBD-7254763FC642@easesoftware.net>
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.