Mail Archives: djgpp/1993/07/16/08:59:52
I'm trying to cook up a program that uses some floating point code
that I can distribute to people who have machines with and without
80387's. I would like my program to use emu387 when no 80387 is
present, otherwise just use the 80387.
It seems that setting the "emu" field in the go32 environment
variable automatically disables the 80387 and uses the emulator
instead. Without it, I expect that the program will crash on a
non-387 equipped machine.
How can I make go32 use emu387 only when necessary?
One suggestion: right now if you rename go32.exe "foo.exe", it tries
to run a program "foo" under go32. This is very handy. Perhaps it
could look for "foo.emu" or "foo.387" and use it as a 387 emulator if
no 80387 is detected, and no environment variables override? This
would make the distribution of software to people unfamiliar with
go32 much easier (unless I there is already an easy way I am
overlooking).
Thanks!
-Mat
mjhostet AT mit DOT edu
- Raw text -