www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/02/10:17:02

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: coprocessor error
Date: Tue, 2 Nov 1999 15:54:46 +0200
Organization: NetVision Israel
Lines: 30
Message-ID: <Pine.SUN.3.91.991102154906.21750B-100000@is>
References: <381BE252 DOT E7128D47 AT wr DOT com DOT au> <7vh845$m5r$1 AT news8 DOT svr DOT pol DOT co DOT uk> <+oQeOHFJi5V5K34xlvfqOWAPWMFA AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 941550804 5056 199.203.121.2 (2 Nov 1999 13:53:24 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 2 Nov 1999 13:53:24 GMT
X-Sender: eliz AT is
In-Reply-To: <+oQeOHFJi5V5K34xlvfqOWAPWMFA@4ax.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 2 Nov 1999, Damian Yerrick wrote:

> > I think what you need to do is link your program to the math coprocessor
> > library.
> > Just add '-lemu' at the end of the line in your makefile which links
> > everything together to produce the executable program.
> > This will allow your program to work on systems that do
> > not have a math coprocessor.
> 
> But isn't libemu really buggy?

It isn't buggier than the emulator emu387.dxe: they are both generated 
from the same code.

> It crashed every time I tried to use DJGPP 2.02's version on my 486SX.

If that was on Windows, then the bug is known (and corrected in the 
current development sources): the program gets stuck in an endless loop, 
you can bail out with Ctrl-C.  Otherwise, please tell the details; the 
emulator works just fine for me on plain DOS.

> I simply switched my math to fixed point, using the Allegro math
> library.

This is not a solution for programs which need serious floating-point 
math computations.  E.g., you cannot use well-established algorithms for 
numerical computations (such as ODE integration) with fixed-point math.  
You need to roll your own specialized algorithms, and that's not for the 
faint of heart.

- Raw text -


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