Mail Archives: djgpp/1999/11/02/10:17:02
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 -