This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Howto use "pretty-print" ?
- From: "Norbert Irmer" <norbert dot irmer at web dot de>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 28 Dec 2004 15:28:35 +0100
- Subject: Howto use "pretty-print" ?
- Reply-to: "Norbert Irmer" <8irmer at informatik dot uni-hamburg dot de>
Hello,
I found out, that with "-fdump-translation-tree" you can
dump the ast of the c/c++ frontend to a file.
When browsing the sources of the latest snapshot
(gcc-4.0-20041226), i saw there is also a
"pretty-print" feature for c/c++, which seems
to convert ast's back to source code, again.
But how can i use this feature ? Is there a certain
command line option for gcc, or is pretty print
a separate program, taking a ".tu" file as input ?
Thanks,
Norbert Irmer