Date: Wed, 23 May 2001 20:57:50 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: john DOT argyle AT harwellinst DOT com (John Argyle) Message-Id: <9743-Wed23May2001205750+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <56a3c75f.0105230150.75217dd4@posting.google.com> (john DOT argyle AT harwellinst DOT com) Subject: Re: Maximising conventional memory for shelled program References: <56a3c75f DOT 0105230150 DOT 75217dd4 AT posting DOT google DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: john DOT argyle AT harwellinst DOT com (John Argyle) > Newsgroups: comp.os.msdos.djgpp > Date: 23 May 2001 02:50:34 -0700 > > I'm trying to maximise the amount of conventional (below 640k) memory > for a program that I 'shell' from a DJGPP program using the system > library function. Operating system is MSDOS 6.22. It seems that the > DJGPP program takes about 92k of conventional memory, estimated by > taking the difference between a 'mem' command typed at the DOS prompt > and one shelled from my program. I'm using the CWSDPMI extender. This is normal: the DJGPP FAQ list explains in section 15.8 that the conventional memory is used to load CWSDPMI and some global and private data for the DJGPP program. This takes up about 130KB, of which about 40K is required for CWSDPMI itself to load. CWSDPMI by default loads into the UMB, so you see about 90K below 640K mark. What is the problem, exactly? I run subsidiary programs from DJGPP programs all the time, with no significant problems. Do you have a DOS program that needs 600KB or more conventional memory to run?