This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: High memory consumption compiling syntax.c
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: High memory consumption compiling syntax.c
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 1 Oct 2001 10:44:52 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <8011-Mon01Oct2001092744+0300-eliz@is.elta.co.il>
Eli Zaretskii wrote:-
> Unfortunately, I don't know enough about GCC internals to see what
> part(s) of syntax.c are the ones which cause such a high consumption
> of memory. Could someone in the know please take a look at syntax.c
> and suggest which parts should I try to rewrite and in what way?
Which compiler is causing the problem? 3.0 and 3.0.1 had problems
with runaway memory consumption if there is a lot of macro expansion
(it could easily chew up 10 to 20 Megs). That was fixed in 3.0.2;
maybe you could try that?
3.1's CPP uses less memory still.
Neil.