cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/28/03:16:12

From: Bill Bouma <bouma AT geoplex DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: gcc running out of memory?
Date: Fri, 27 Feb 1998 23:17:38 -0800
Organization: AT&T Labs
Lines: 34
Message-ID: <34F7BA12.D3C0ACFC@geoplex.com>
NNTP-Posting-Host: geoplex.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am attempting to compile a rather large file, 3195 lines
long which contains 1 function which is about 2000 lines 
long, a few statically allocated arrays and 50 line
main program.  The big function is essentially a switch
statement with 360 cases.

This file compiles without problem under gcc-2.8 on a sun
solaris machine.  When I attempt to compile it under djgpp
running in msdos window it works on it for about 5-10 sec
and then throws the ususal "This program has performed an 
illegal operation and will be terminated..." that seems to
be basically equivalent to a SEGV on unix.

By including the -m option on the command line, it reports
using 28MB memory.  My machine has 40MB.  Is it possible I
do not have MSDOS shell with enough memory?  I am new to
MSDOS, so I do not know what all of these memory options
are: conventional, expanded (EMS), extended(XMS) (also, use
HMA or not), and protected mode (DPMI)?  I have these all
set to "auto".  If I set them to 16384, it says "unable to
allocate memory at line 2712".  If I set them to 32768, the
behavior is identical to "auto".

Ideas?  I sure would like this to work.  The code is secret,
so I cannot send it in as an example for a bug report.  (yeah,
that's it, it is secret)  Would running in MSDOS without
windows possibly make it work?  I have been unwilling to try
that because I have to reconfigure a bunch of stuff.   I might
also mention that I have been compiling a lot of stuff under
djgpp, it is just this one file that is messing up.

Thanks, if you are reading this.

Bill <bouma AT geoplex DOT com>

- Raw text -


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