This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
problematic memory consumption with gcc-3.4 during compilation
- From: Dale E Martin <dmartin at cliftonlabs dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 5 May 2004 13:52:12 -0400
- Subject: problematic memory consumption with gcc-3.4 during compilation
(I'm not subscribed to this mailing list, please Cc me on replies.)
I work on an LGPL VHDL front-end and code generator called savant. It is
implemented in C++. We've been using g++-3.3 as our primary compiler for
the last few months. With the annoucement of version 3.4 I have installed
g++-3.4 to experiment with. (I run Debian Gnu/Linux, and I compiled the
experimental packages on my "woody" box.) Overall I have found it to be
faster, more strict, and other good things so I was planning on moving to
it.
On one of our branches I noticed a problem. Several files that compile
using "normal" amounts of memory - not in excess of 400M of virtual memory
- require more than 2G of virtual memory to compile with g++ 3.4. These
source files do include a large and complex class heirarchy - one of the
classes is a factory for example, so it #includes a large number of files.
But 2G seems indicative of a problem. I have done a cpp dump of one of the
files in question and will happily email it to anyone who would like to
take a look at this issue. (It's about 61000 lines preprocessed.) Please
feel free to email me with any questions or suggestions.
Take care,
Dale
--
Dale E. Martin, Clifton Labs, Inc.
Senior Computer Engineer
dmartin@cliftonlabs.com
http://www.cliftonlabs.com
pgp key available