memory problems

Nathan Sidwell
Tue May 10 16:12:00 GMT 2005

derek riley wrote:
> Hello-
> I am a fairly new c++ user and I need help dealing with very large
> arrays.  I have run into problems in my program because I need to use
> VERY large arrays (hundreds of millions of elements) and the heap size
> seems to be fixed not allowing me to use more than 64K.  Is there a
> simple way to allow for a larger heap or another place I can store the
> array?  Thanks

you neglect to say what system you are using.  The amount of stack space
available is generally a system property.


Nathan Sidwell    ::   ::     CodeSourcery LLC    ::

More information about the Gcc-help mailing list