www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/20/16:48:04

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Michael Wahl <mick AT pq DOT fta-berlin-nospam-de->
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Max array size
Date: Thu, 20 Dec 2001 22:38:09 +0100
Organization: PicoQuant
Lines: 16
Message-ID: <3C225A41.573B4973@pq.fta-berlin-nospam-de->
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1011206094749 DOT 15950J-100000 AT is> <9uofkr$692$1 AT news DOT iastate DOT edu>
NNTP-Posting-Host: quantum.pq.fta-berlin.de
Mime-Version: 1.0
X-Trace: rhodos.FTA-Berlin.de 1008887961 6334 141.16.70.115 (20 Dec 2001 22:39:21 GMT)
X-Complaints-To: usenet AT rhodos DOT fta-berlin DOT de
NNTP-Posting-Date: 20 Dec 2001 22:39:21 GMT
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tom Kent wrote:
> 
> Thanks to all.  It works now.
> I just have to run the command: stubedit finder.exe minstack=4194304
> that makes the stack 4MB instead of 512KB

sure this works but is it really sensible to have such a big array as a
local variable (automatic) ?

> it compiles and runs fine under the gcc compiler on a unix machine

Ok, but if you port it to another compiler/environment the problem
may appear again and the solution may be quite different (if any).
Why not make it a global variable or malloc the necessary memory.

Michael

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019