Messages in this thread | | | Date | Sat, 19 Jan 2002 22:14:28 -0500 | From | Bart Trojanowski <> | Subject | Re: C source lines for assembly listing |
| |
* 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/ [unhandled content-type:application/pgp-signature] | |