GCC Parse Tree/Grammar Issues
Foolish Ewe
foolishewe@hotmail.com
Tue Apr 15 03:40:00 GMT 2003
Thanks, this might be promising. Initially I'd like to try to generate a
parse tree
that has the fewest transformations after preprocessing completes. I'm
also
assuming that the GENERIC tree does this, is this correct?
Steven Bosscher writes:
>
>Op ma 14-04-2003, om 18:08 schreef Foolish Ewe:
> > 2) Am I correct that gcc uses an ad hoc scanner, I did not see a file
>wiith
>
>GCC has an integrated preprocessor. Look at the cpp* files.
>
> > 3) Can I get gcc to dump its parse tree (or AST) without hacking it? If
>so,
> > what is the
> > format of the dump? Is tree-dump.c the right module to look at?
>
>Check out the tree-ssa project -- http://gcc.gnu.org/projects/tree-ssa/
>It can dump the AST in different stages of the tree optimizers. The
>dumps can look like C or like something that is more detailed but not
>very human-readable.
>
Thanks:
Bill M. (Last Name withheld to reduce spam)
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
More information about the Gcc
mailing list