Code generation
Jim Wilson
wilson@specifixinc.com
Wed Mar 31 06:29:00 GMT 2004
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
More information about the Gcc
mailing list