delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/27/14:00:35

Date: Mon, 27 Sep 1999 19:09:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tom Morton <tmorton AT yikesstation DOT freeserve DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Program too large?
In-Reply-To: <7so38g$ns6$1@news6.svr.pol.co.uk>
Message-ID: <Pine.SUN.3.91.990927190441.10981D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 27 Sep 1999, Tom Morton wrote:

> I was happily writing my DJGPP/Allegro game, blissfully unaware
> that it was approaching my computers maximum conventional memory.
> The game's .exe file is now 560Kb and no longer runs, reporting:
> 
> Program too big to fit in memory

The size of the executable has nothing to do with how much conventional 
memory it uses up.  DJGPP programs usually need about 70KB of 
conventional memory, the rest goes into extended memory.  The error 
message you cite is printed by DOS, but DOS doesn't even know how much 
extended memory does a DJGPP program need, because DOS doesn't understand 
the format of the DJGPP executable, and doesn't read anything into memory 
except the short 2KB stub prepended to it.  The extended memory is set 
up, and the program is read into it by the stub loader, not by DOS.

So your problem is NOT with the size of .exe, it is somewhere else.  Most 
probably, you made some mistake when compiling your program.  So 
describing how exactly did you compile and link the program, including 
the command line and any switches you used, would be a good beginning.

- Raw text -


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