From: Eli Zaretskii 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: 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 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.