This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Mapping C code to generated asm code


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]