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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Love-Jensen writes:
 > 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.)

It can be.  However, most x86-64 applications are built using the
small model, which limits the data segment to 2 gigabytes.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux