Re: g++ optimization question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/29/07, Peng Yu <pengyu.ut@xxxxxxxxx> wrote:

> Are there any compiler options which generate more
> information and help me to read the assembly code and compare it with
> the source code?

You can request dumps of the intermediate forms and transformations
done during compilation.  See -fdump-rtl-xxx and -fdump-tree-xxx in
the GCC manual.

To get an annotated assembly output with source code try the following flags:

$ gcc -Wa,-ahlsdn -gstabs file.c

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux