This is the mail archive of the gcc-patches@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: [PATCH]: Trying to make list nodes smaller, but the C++ FEkeeps beating me down


On Sun, 2005-05-15 at 10:04 -0400, Kazu Hirata wrote:
> Hi Daniel,
> 
> > The attached patch works fine for C, Java, and F95, AFAICT (it
> > bootstraps and passes regtests ).
> > 
> > It removes the TREE_TYPE field from TREE_LIST, which is not used in
> > these FE's (it's a first step to actually removing all but the purpose
> > and value fields for TREE_LIST and STATEMENT_LIST_NODE, which would
> > bring TREE_LIST from 28 bytes to 8 or 12 on a 32 bit machine).
> 
> If TREE_LIST is giving you hard time, can we just drop the type field
> from STATEMENT_LIST to start with?

You can actually drop everything but the chain field from statement list
(IE add a "struct tree_minimal" that only has the chain field).

Unfortunately, it buys us almost nothing :(

> 
> Kazu Hirata


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