This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
build tree nodes vs expand as you go
- To: gcc at gcc dot gnu dot org
- Subject: build tree nodes vs expand as you go
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 21 Dec 2000 19:21:59 +1100
Hi,
I'm working on a new front-end.
I'm trying to decide whether to build a gcc tree node for each
statement in my source language (like e.g. the Java front-end does),
or whether to just expand them directly, using expand_start_cond(),
expand_else(), expand_end_cond() etc.
What are the trade-offs here?
At first glance expanding them directly looks a little simpler,
but I'm worried I may be missing something...
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.