Mail Archives: djgpp/2000/06/14/06:38:49
On Wed, 14 Jun 2000, Nimrod Abing wrote:
> I would like to know whether PMODE/DJ
> uses the floating point coprocessor to
> function properly and thus requires one
> to be present.
I don't know whether PMODE/DJ issues FP instruction (I would expect it
not to do that). However, the sources for PMODE are available, so you
should be able to look there and know for sure.
It's possible that some function in your program emits FP instructions.
You should be able to use "objdump --disassembly", and then grep the
result for FP instructions.
> So, who's responsible for the SIGNOFP?
When i386 sees an FP instruction, and there's no 80387, the CPU generates
a special exception ("Coprocessor Not Present", exception no. 7).
The startup code of the DJGPP library installs an exception handler for
this exception, which catches it and converts it into the signal SIGNOFP.
- Raw text -