Message-ID: <34F81095.D9C5E330@cornell.edu> Date: Sat, 28 Feb 1998 08:26:45 -0500 From: "A. Sinan Unur" Organization: Cornell University (http://www.cornell.edu/) MIME-Version: 1.0 To: Bill Bouma , djgpp AT delorie DOT com Subject: Re: gcc running out of memory? References: <34F7BA12 DOT D3C0ACFC AT geoplex DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Bill Bouma wrote: > 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". i would rcommend getting rid of the ems memory (set to none) leave xms at auto, and type 65535 for dpmi. don't forget to use a large enough value for the environment (at least 2K). also, set conventional memory to 640k, and check the protected option below that (i am not exactly sure what it does.) this setup has never caused a problem for me (although i never compiled anything so huge.) now, those were general recommendations. it sounds more like you are running out of stack space. once you make sure enough memory is available, you can use stubedit to increase the default stack size for gcc (just go to the bin directory, type stubedit gcc.exe, and set it to 1Mb or more, and give it a shot.) hth. -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/