delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/27/20:50:29

From: "Tom Morton" <tmorton AT yikesstation DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Program too large?
Date: Tue, 28 Sep 1999 00:03:34 +0100
Organization: Yikes Station Ltd.
Lines: 39
Message-ID: <7sovfd$fj4$1@news6.svr.pol.co.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990927190441 DOT 10981D-100000 AT is>
NNTP-Posting-Host: modem-39.atenolol.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 938475821 15972 62.136.54.39 (27 Sep 1999 23:43:41 GMT)
NNTP-Posting-Date: 27 Sep 1999 23:43:41 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 990927190441 DOT 10981D-100000 AT is...
>
> 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.

The last thing I did before it stopped working was add an extra function
to main.c. I tried re-compiling it but it still didn't work so I moved it
[the function] to another source file and everything worked again. <shrug>
Oh well, as long as it works...


--
Yikes Station: The Best Frontier Elite 2 Website
http://www.yikesstation.freeserve.co.uk/frontier/yikes.htm

Tom 'Moretom' Morton


- Raw text -


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