delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Max array size |
Date: | 6 Dec 2001 03:51:59 GMT |
Organization: | Cornell University |
Lines: | 23 |
Sender: | asu1 AT cornell DOT invalid (on 187.syracuse-02rh15rt.ny.dial-access.att.net) |
Message-ID: | <Xns916EE877B8E14ASINANUNUR@132.236.56.8> |
References: | <9ump4d$186$1 AT news DOT iastate DOT edu> |
NNTP-Posting-Host: | 187.syracuse-02rh15rt.ny.dial-access.att.net |
X-Trace: | news01.cit.cornell.edu 1007610719 18632 12.89.10.187 (6 Dec 2001 03:51:59 GMT) |
X-Complaints-To: | usenet AT news01 DOT cit DOT cornell DOT edu |
NNTP-Posting-Date: | 6 Dec 2001 03:51:59 GMT |
User-Agent: | Xnews/4.06.22 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Tom Kent" <tomkent AT iastate DOT edu> wrote in news:9ump4d$186$1 AT news DOT iastate DOT edu: > I was wondering if there was any maximum array size is. I've been > trying to compile a program that has an array of floats with dimensions > 10,000x16. It compiles fine, but then when i go to run it I get an > error. However it compiles and runs fine under the gcc compiler on a > unix machine I use. Because of this I was hypothesizing a potential > limitation either with this compiler or with DOS. I'm running it in > cmd.exe under windows XP on a dual 1.7GHz Xeon machine with 512MB RAM. > Thanks in advance. Tom Kent if you are using various such arrays as local variables, you may be messing up the stack. you can increase the default stack size of your program using stubedit, or allocate room for the arrays using malloc. hth. sinan. -- -------------------------------- A. Sinan Unur http://www.unur.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |