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]

Re: build tree nodes vs expand as you go


On Thu, Dec 21, 2000 at 07:21:59PM +1100, Fergus Henderson wrote:
> 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?

The long term vision is that a front end doesn't deal with rtl at all, but
instead hands off a tree describing the entire function to the middle end.

At which point we do tree-based optimizations, then convert to an oft
wished for mid-level rtl (more regular and less machine specific) and do
SSA based optimizations, then convert to the rtl used today.

So please do generate trees for the entire function.


r~

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