[Bug c++/15320] New: Excessive memory consumption

dmartin at cliftonlabs dot com gcc-bugzilla@gcc.gnu.org
Thu May 6 15:29:00 GMT 2004


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.

-- 
           Summary: Excessive memory consumption
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmartin at cliftonlabs dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15320



More information about the Gcc-bugs mailing list