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: g++ compile option question


On Tuesday 19 August 2003 17:24, Halifa Yehezkel-BYH005 wrote:
> I would like  to compile a C or C++ src file and get the ASM listing after
> each or couple of C/C++ lines. g++ with -S option will produce the ASM
> listing of the src file, but I am looking for something like 1 or couple of
> C lines then their ASM listing and so on...

Have you ever tried

  objdump -ldS <obj_file>

?

Frank
-- 
## Dept. of Computer Science, Dresden University of Technology, Germany ##
## http://os.inf.tu-dresden.de/~fm3                                     ##

Attachment: pgp00000.pgp
Description: signature


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