Unit at a time C++ again

Jan Hubicka hubicka@ucw.cz
Thu Jun 19 08:36:00 GMT 2003


> On Wed, 2003-06-18 at 05:26, Jan Hubicka wrote:
> > Mark,
> > after some frustration I got back to the unit-at-a-time and it appears
> > difficult to get there without doing quite a lot of intrusive modifications at
> > once, so I would like to discuss with you a plan whether it is possible to get
> > unit-at-a-time working with gcc-3.4 timeframe (it would be nice to do as it
> > would be easier to modify inlining heuristics to avoid some dead ends we are
> > seeing now).
> 
> As I said before, I don't think we should consider this work until it
> handles both template instantiation and data emission.  Otherwise, we're

OK, dealing with template instantiation should not be too dificult (I
think I can simply instantiate all templates with the code I am having
right now).  Dealing with at least needed portion of the datastructures
should not be impossible, but I would like first to understand what
exactly it does buy to us...

> getting far less than halfway there; the places where we're seeing big
> problems relate to the interaction between all of these things.

... what kind of problems do you have in the mind?

> 
> (I'd also prefer that the bits that make registration calls into cgraph
> not happen until the end of the translation unit.  There's no reason
> they should have to be done as we go.)

I am doing that now - I put them into deferred_functions array, register
all of them at the end of compilation unit and then instantiated
templates and friends go directly.

Honza
> 
> -- 
> Mark Mitchell
> CodeSourcery, LLC
> mark@codesourcery.com



More information about the Gcc mailing list