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: Compiler loop optimizations


Christian Sturn <linuxkaffee@gmx.net> writes:

> Thank you for your answer. Is there any chance to have gcc dump out
> an optimized code in the form the source level language, e.g. can I run
> gcc with some optimizations and see how the compiler modified my C
> source code? 

You can get an approximation using -fdump-tree-*.  See the
documentation.  That is usually enough to see how the optimizations
affected your code.

There is no support for dumping actual valid source code, though, and
it is unlikely that there ever will be.

Ian


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