delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/13/09:10:16

Date: Mon, 13 Oct 1997 15:07:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Anthony Mills <anthony DOT mills AT dsto DOT defence DOT gov DOT au>
cc: djgpp AT delorie DOT com, help-gnu-emacs AT prep DOT ai DOT mit DOT edu
Subject: Re: djgpp and dpmi under Emacs for win95
In-Reply-To: <277mbiwrzm.fsf@Erebus.dsto.defence.gov.au>
Message-ID: <Pine.SUN.3.91.971013150618.11407Q-100000@is>
MIME-Version: 1.0

On 13 Oct 1997, Anthony Mills wrote:

> Maybe I didn't make myself clear, we CAN compile under a dos box in
> win95 this way (geting 64Mb).  What we can't do is get EMACS to give
> more than 30 meg when it spawns a proces like shell.

Does this happen even after you changed the properties of gcc.exe as I
suggested?  Note that if you want to measure the amount of virtual
memory with go32-v2 launched from Emacs, you must also change its
properties in the same way.  And if you spawn DJGPP's Make, you need
to do the same with make.exe.

If that doesn't work, try to invoke gcc.pif instead of gcc.exe (I'm
not sure whether Emacs will let you do so, though.)

> I also thought since I get a total of 30Mb nom atter how I run it, I
> might be able to modify and recompile Emacs (done this many times on
> unix never in windows).

I doubt recompiling Emacs would help.  The problem is that the way you
run gcc, it doesn't get its DPMI settings from Emacs, because Emacs
you run is a native Win32 application.  So when gcc is run, Windows
creates a new DOS box for it.  You need to find a way to set the DPMI
memory size of that box to 64MB.  I think that changing the properties
of gcc.exe itself should do.
 
> This IS an Emacs problem so I am posting it here,  and cross posting to 
> comp.os.msdos.djgpp since thay may have had a similar problem.

When gcc is run from Emacs compiled with DJGPP, it runs in the same
DOS box as its parent Emacs.  So if Emacs gets 64MB, so does gcc.
What I did was to change the properties of emacs.exe to get 64MB, and
that is usually enough for DJGPP users.

- Raw text -


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