C PATCH: Don't generate initializers incrementally

Richard Henderson rth@cygnus.com
Fri Oct 27 18:10:00 GMT 2000


On Fri, Oct 27, 2000 at 05:59:08PM -0700, Mark Mitchell wrote:
> I would think it should take something pretty huge for that to happen
> on most machines nowadays.

Perhaps.  I think 8MB was the norm when this stuff was first written.

> Such stuff certainly isn't portable; lots of compilers actually have
> hard limits on number of elements in an array initializer, etc.

That is largely irrelevant.  It constitutes a regression in
quality of implementation if we could not handle very large
arrays anymore.

> We could also handle the incrementalism better by noticing that we're
> getting to be building a real big CONSTRUCTOR, and emitting the first
> part of it at that point, rather than doing this for all structures.

That would be fine.

> If problems come up that we think we need to solve, I promise to
> either restore the code, or implement some other code to solve the
> problem without penalizing the common case.

Good enough.


r~


More information about the Gcc-patches mailing list