From: Michael Feldman Subject: bug in coff2exe, or what? To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List) Date: Tue, 22 Nov 1994 17:18:36 -0500 (EST) Hi, all! In compiling a program that uses floating point, on a 386 without a coprocessor, I'm running into a weird situation. Naturally my go32 setup includes a pointer to the floating point emulator (emu387). If I run the coff program directly under go32, i.e. go32 myprog all is well and the emulation is done. However, if I convert to .exe, say coff2exe myprog >myprog.exe then execute as a normal DOS executable, the program crashes withthe message "Fatal! Application attempted to to use not-present 80387!" Why the difference in behavior? Is there a workaround? Aside: you may well ask why I do not have a coprocessor. Well, I deal with a lot of different stuff, including compilers, and I keep this machine free of the 387 just to test whether FP emulation is OK! It's a dirty job, but someone's gotta do it. :-) Thanks! Mike Feldman ------------------------------------------------------------------------ Michael B. Feldman - chair, SIGAda Education Working Group Professor, Dept. of Electrical Engineering and Computer Science The George Washington University - Washington, DC 20052 USA 202-994-5919 (voice) - 202-994-0227 (fax) - mfeldman AT seas DOT gwu DOT edu (Internet) ------------------------------------------------------------------------ Ada on the World-Wide Web: http://lglwww.epfl.ch/Ada/ ------------------------------------------------------------------------ "Non illegitimi carborundum." (Don't let the bastards grind you down.) ------------------------------------------------------------------------