cc1plus: out of memory allocating 33554432 bytes after a total of 38465536 bytes

John Love-Jensen eljay@adobe.com
Tue Feb 13 17:09:00 GMT 2007


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



More information about the Gcc-help mailing list