delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/16/03:05:05

From: Michael Feldman <mfeldman AT seas DOT gwu DOT edu>
Subject: memory utilization?
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List)
Date: Thu, 15 Sep 1994 23:41:08 -0400 (EDT)

We are porting an editor we wrote into djgpp - it's a nice Turbo-ish,
multiwindow program editor we've used with our enhanced Ada/Ed
compiler system. 

We were actually able to port the editor quite easily, as we'd moved
it already from Intel to Borland, and djgpp conio is quite close to
the Borland one.

With that as background, we need to ask about memory in djgpp (we are
all rather djgpp-naive). I have no problem running djgpp (and GNAT,
for that matter) with no memory managers running and 8meg extended.
We also have no trouble with the editor itself.

One of the editor features is, of course, the ability to escape to a
DOS shell. I tried this, and tried running djgpp inside the second
shell. I got:

Error: not enough memory to run go32!

A "mem" command executed from the inner shell gives:

655360 bytes total conventional memory
655360 bytes available to MS-DOS
173744 largest executable program size (sure, the editor is loaded)

7340032 bytes total contiguous extended memory
7340032 bytes available contiguous extended memory

Looks like my extra 7meg is not being used. How do I make this happen?

BTW - after doing setupgpp, before invoking our editor, 

478672 bytes largest executable program size

Thanks!

Mike Feldman
------------------------------------------------------------------------
Michael B. Feldman -  chair, SIGAda Education Working Group
Professor, Dept. of Electrical Engineering and Computer Science
The George Washington University -  Washington, DC 20052 USA
202-994-5919 (voice) - 202-994-0227 (fax) - mfeldman AT seas DOT gwu DOT edu (Internet)
NOTE NEW PHONE NUMBER.
"Pork is all that stuff the government gives the other guys."
------------------------------------------------------------------------


- Raw text -


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