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]

build tree nodes vs expand as you go


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.

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