Ian Lance Taylor wrote:
Christian Sturn <[EMAIL PROTECTED]> 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.

And indeed it is not in general possible, there are many optimizations
that cannot be expressed in valid C.

Ian

Reply via email to