This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code generation
Primrose.Mbanefo@Infineon.com wrote:
I have seen a lot on the internet saying it is possible to retrieve the
syntax tree created by gcc.
I use gcc 2.95.2 on a solaris box and I can't seem to find out how to
get the tree in a file.
You need a more recent version. -fdump-translation-unit appeared in
gcc-3.0.x.
These trees are deliberately incomplete. This is to prevent people from
trying to subvert the GPL by feeding the trees into proprietary
compilers. This is an inconvenience, but it is FSF policy, and we must
respect it.
There are additional tree dumping options in more recent gcc versions.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com