Re: C source lines for assembly listing

From: Bart Trojanowski (bart@jukie.net)
Date: Sat Jan 19 2002 - 22:14:28 EST


* Kallol Biswas <kallol@efi.com> [020116 20:35]:
> Hi,
> Does gcc have an option to list the C source line information for
> assembly instructions?

I am not sure what you are asking for... but I will give it a shot. ;)

One of the tools that comes with the package binutils is called objdump.

If you compile your source with -g flag then you can use objdump to
display mixed assembly and C source code.

        gcc -g foo.c -o foo.o
        objdumpt -S foo.o

I hope this helps.

B.

-- 
				WebSig: http://www.jukie.net/~bart/sig/


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:00:36 EST