C PATCH: Don't generate initializers incrementally
Richard Henderson
rth@cygnus.com
Fri Oct 27 17:40:00 GMT 2000
On Fri, Oct 27, 2000 at 05:25:17PM -0700, Mark Mitchell wrote:
> This patch gets rid of lots of code in c-typeck.c designed to emit
> little bits of big global array/structure initializers at a time.
>
> That's silly -- we actually should save them all up to end of file and
> then emit them only if we really need to. But, I didn't do that. :-)
It's not that silly. Consider memory usage while compiling a
large xbm bitmap, or similar machine-generated data structures.
Gcc running out of memory in such cases is why that code was
written in the first place.
r~
More information about the Gcc-patches
mailing list