This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]