From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: help! vitural memory Date: Tue, 21 Jul 1998 18:51:17 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 31 Message-ID: <35B51B64.96909508@cs.com> References: NNTP-Posting-Host: ppp124.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ching-kuang Kuo wrote: > > I have a simple c program for simulation but use lots of arrays. I > figure out that the program crashes because of incifficnent memory. I > follow the FAQs and change the MS-DOS memory to the maximum value 65535 > but still not enough. I personally believe the program needs 100 M byte. I > know many experienced programmer, like you, use DJGPP and write much > bigger projects than my simple one. Could you tell me how to allocate more > memory for DJGPP? > Besides, I got cwsdpmi from internet but don't know how to use it, > could it be useful? The limitation is in Windows 95's DPMI host, which only allows a maximum of 64 MB to DOS programs. cwsdpmi is a free DPMI host written for DJGPP that runs in plain DOS (without Windows resident) and provides up to 512 MB (256 physical + 256 virtual) in the latest version. To use it, however, you _must_ run from plain DOS; as long as Win95's DPMI is resident cwsdpmi can't be loaded. cwsdpmi should be installed like any other DJGPP package. DJGPP programs will automatically search for and run cwsdpmi.exe if no other DPMI server is present, as long as it's in the PATH or in the same directory as the program. -- --------------------------------------------------------------------- | John M. Aldrich | "Always listen to experts. They'll | | aka Fighteer I | tell you what can't be done, and why.| | mailto:fighteer AT cs DOT com | Then do it." | | http://www.cs.com/fighteer/| - Lazarus Long | ---------------------------------------------------------------------