delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/24/08:00:42

Date: Fri, 24 May 1996 14:56:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Alessandro Guarguaglini <a DOT guarguaglini AT comune DOT livorno DOT it>
Cc: djgpp AT delorie DOT com
Subject: Re: djgpp & 387 emulator...
In-Reply-To: <9605241047.AA10525@rcl.comune.livorno.it>
Message-Id: <Pine.SUN.3.91.960524145246.5365L-100000@is>
Mime-Version: 1.0

On Fri, 24 May 1996, Alessandro Guarguaglini wrote:

> a math coprocessor. I can get everything working on his machine by using emu387
> and setting the appropriate env. variable. What I would like to know is if there
> is a way to include the math emulator directly into the .exe file, because he
> maybe need to use the program on different machines, expecially at University,
> and so this solution would be better.

No, in DJGPP v1.x this is impossible.  Switch to DJGPP v2, and you will 
be able to link your program with an emulator library to achieve this.

> Moreover, I need to kwow if is possible
> to set the program to don't use the internal math-coprocessor and use insthead
> the emulator. I tryed the SET 387=NO, but the program still works even if I 
> don't set any emulator.

You can't do this, either.  Moreover, if you could, your program would 
crash under Windows, because in DJGPP v1.x FP emulation doesn't work in 
DPMI environment (and DPMI is the only way DJGPP can work under Windows).

You can read more about this in Chapter 11 of the DJGPP FAQ list 
(available as faq102.zip from the same place you get DJGPP).

- Raw text -


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