This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Parse Tree/Grammar Issues


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]