This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cc1plus: out of memory allocating 33554432 bytes after a total of 38465536 bytes
- From: John Love-Jensen <eljay at adobe dot com>
- To: Pavel Saviankou <saviankou at web dot de>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 13 Feb 2007 11:05:20 -0600
- Subject: Re: cc1plus: out of memory allocating 33554432 bytes after a total of 38465536 bytes
Hi Pavel,
> It doesn't matter, why i do it on such way.
*shrug* Okay. I thought you were solving a real world problem, rather than
just being an academic exercise in the limits of the GCC compiler.
> The quastion is, why g++ cannot compile (without optimisaion, -O0,
> -Q) function (even rathner large one), where is only assignation
> code? what can be simpler than that?
Because GCC is running out of memory.
Is your GCC compiled as a 64-bit application? Are you running on a 64-bit
OS that supports applications running as 64-bit applications? (Some 64-bit
OS's only support 32-bit client applications.)
(I'm not even sure if GCC can be compiled as a 64-bit application. I know
it can be built to produce 64-bit applications... but that's not relevant.)
HTH,
--Eljay