g++ compile option question

Frank Mehnert fm3@os.inf.tu-dresden.de
Tue Aug 19 18:16:00 GMT 2003


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                                     ##
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030819/6f82a282/attachment.sig>


More information about the Gcc mailing list