This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: excessive memory consumption
- To: jason at cygnus dot com (Jason Merrill)
- Subject: Re: excessive memory consumption
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Fri, 3 Oct 97 15:43:57 PDT
- Cc: jbuck at synopsys dot com, egcs at cygnus dot com
Jason writes:
> Found it! In situations of recursive instantiation, there can be a lot of
> stuff compiled in the middle of compiling a given function, running up the
> label count. save_for_inline_copying creates new labels for everything
> between min_labelno and max_labelno, which can add up to a *lot* of space.
Congratulations! With your patch, that last case I posted takes about the
same virtual memory whether templates are used or not. That is, about 30
meg instead of 490 meg.
If we still had a support contract, I'd say you could close the call. :-)