delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | Charles Sandmann <sandmann AT clio DOT rice DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Trouble of using very large arrays |
Date: | Thu, 22 Apr 2004 14:06:05 CDT |
Organization: | Rice University, Houston, TX |
Lines: | 10 |
Message-ID: | <4088179d.sandmann@clio.rice.edu> |
References: | <c68d6j$g57$03$1 AT news DOT t-online DOT com> <c68e70$96gqq$1 AT ID-231750 DOT news DOT uni-berlin DOT de> <c68u9l$9fevb$1 AT ID-79865 DOT news DOT uni-berlin DOT de> |
NNTP-Posting-Host: | clio.rice.edu |
X-Trace: | joe.rice.edu 1082660983 5708 128.42.105.3 (22 Apr 2004 19:09:43 GMT) |
X-Complaints-To: | abuse AT rice DOT edu |
NNTP-Posting-Date: | Thu, 22 Apr 2004 19:09:43 +0000 (UTC) |
X-NewsEditor: | ED-1.5.9 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> a = (unsigned int*)malloc (rows * columns * sizeof (unsigned int)); > Rows - 100000000, Columns - 3 > Failure : Unable to allocate storage You are allocating 1.2 GB in a single request here. If you have enough memory and disk storage for swapping this might work, but in many environments it won't. You many need to reconfigure something for an allocation this large.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |