delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/05/08:43:34

Date: Sun, 5 Dec 1999 12:24:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Leon <Leon AT caresystems DOT com DOT au>
cc: djgpp AT delorie DOT com
Subject: Re: compilers and RAM needs
In-Reply-To: <199912030553.AAA24781@delorie.com>
Message-ID: <Pine.SUN.3.91.991205122420.11435V-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 3 Dec 1999, Leon wrote:

> was just thinking - when running make.exe
> is it a good idea to have all other programs closed (esp EMACS) so that the
> compiler will have more RAM to work with?

Does this mean that you do this on Windows (as opposed to plain DOS)?
Otherwise, I don't understand the meaning of ``have all other programs
closed''.

In general, it isn't worth closing applications (especially Emacs)
just to free memory.  Restoring the Emacs session to its previous
state is not an easy task, even if you use the desktop.el package.  On
the other hand, the memory-related problems are minimal, see below.

So I suggest to run compilations and Make from Emacs and stop worrying
about the memory issue.

> or if i launch something from EMACS - how does emacs deal with memory when
> calling another app?

Emacs doesn't do anything about memory, it's up to the DPMI server to
page out some of Emacs to disk to free memory for the compiler, and
page it back in when the compiler finishes.  It is all done
transparently for you, just make sure you have enough free space on
disk.  See section 15.8 of the DJGPP FAQ list for more details about
this.

> and lastly - how would one specify in DOS how much memory the program
> should use when it is running?

If you are talkiing about extended memory (that's what DJGPP programs
use), then this cannot be done for individual programs, only globally
for the entire system.

But why would you need to do anything like that?  The DPMI server
already does all the necessary magic behind the scenes to make
it possible for you to run DJGPP programs from within other DJGPP
programs.

- Raw text -


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