Mail Archives: djgpp/1999/09/26/08:18:02
From: | ralph AT fingers DOT shocking DOT com (Ralph Reid)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | 387 emulation problem
|
Organization: | shocking.com
|
Lines: | 32
|
Message-ID: | <7skr62$7ff@fingers.shocking.com>
|
Date: | 26 Sep 1999 03:05:54 -0700
|
NNTP-Posting-Host: | 216.111.111.11
|
X-Trace: | news2.randori.com 938340436 216.111.111.11 (Sun, 26 Sep 1999 03:07:16 PDT)
|
NNTP-Posting-Date: | Sun, 26 Sep 1999 03:07:16 PDT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
The 387 emulation library seems to have a problem. I compiled the
little program below with gcc2.95 and DJGPP, using the following
command lines in an MSDOS 6.22 OS on a 486SX25:
gcc -s -O2 -Wall -c sqrt.c
gcc -s -O2 -Wall -o sqrt.exe sqrt.o -lemu
No errors or warnings appear during compilation or linking. Running
the resulting program (SQRT.EXE) produces no output at all, and I was
able to terminate the program with CTRL-C. Here is the program
source:
==============================cut here==============================
/*Demonstrate the EMU387 error.*/
#include <math.h>
#include <stdio.h>
int main (void) {
printf ("%g\n", sqrt (2.0));
return (0);
} /*main*/
==============================cut here==============================
--
Ralph. N6BNO. Wisdom comes from central processing, not from I/O.
ralph AT shocking DOT com http://www.shocking.com/~ralph
Opinions herein are either mine or they are flame bait.
TAN (x) = SIN (x) / COS (x)
- Raw text -