This is the mail archive of the gcc@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]

cc1plus: out of memory allocation.


Hello,

I'd like to track gcc 3.2 development from time to time and so I've
updated to latest main trunk sources and give it a try with our version of
MICO (http://www.mico.org).

The compilation stops with:

'cc1plus: out of memory allocating 2729311200 bytes after a total of
23707904 bytes'

I've compiled with '-I../include -O2  -Wall -D_GNU_SOURCE -D_REENTRANT
-fpermissive   -DPIC -fPIC  -c' options. I think that the problem might be
in optimizer, since the same problem appears with -O1, but not with -O0.

The compiler itself consumes about 280MB RAM (machine itself has more than
enought memory - 512 MB RAM + 520 MB swap). It produces 1.7 MB
preprocessed ii file and even 456 KB assembler output. I'm not able to
track this problem down a bit and so I have to ask if it's enought info
for someone interested or if I have to make bugreport about it with
attached these two (quite big) files.

Thanks,

Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com


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