lkml.org 
[lkml]   [2002]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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]
\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.028 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site