www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/25/05:36:35

Date: Thu, 25 Apr 1996 11:51:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: GEORGE GAGHON <gaghon AT nevada DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: problem with DJGPP and arrays.
In-Reply-To: <4lk5mk$rl4@news.nevada.edu>
Message-Id: <Pine.SUN.3.91.960425114642.23363a-100000@is>
Mime-Version: 1.0

On 24 Apr 1996, GEORGE GAGHON wrote:

> Ok I am having a problem with DJGPP and large arrays.  All my arrays do 
> not exceed 2megs of RAM (combined).

Are they static (i.e. declared outside any function) or automatic?  If 
they are automatic (declared inside a function), then they are allocated 
on the stack, and the default stack in DJGPP v2 (is that v2?) is limited 
to 256KB.  The DJGPP FAQ list (v2/faq200b.zip from the same place you get 
DJGPP) describes how to enlarge the stack in section 15.8, which see.

> file into it.  I looked in the FAQ and found nothing that helped.

How so?  The question in section 15.8 says this:

   **Q*: My program bombs when I use very large automatic arrays.*

- Raw text -


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