Mail Archives: djgpp/1998/05/20/05:15:16
On Tue, 19 May 1998, Dr. András Sólyom wrote:
> What is the case with GCC ? DOes it allow to catch/test all possible floating
> point exceptions?
I don't really understand what exactly is the problem with MSC, so I
cannot give any definitive answer.
DJGPP allows you to control the FPU behavior by providing a function
to set the x87 control word. For example, setting a certain bit there
would cause SIGFPE to be delivered to your program if you try to
compute exp(MAX_INT).
If you ask whether GCC emits instructions which change the x87 status
word, then I don't think it does, at least in simple programs that I
tried.
- Raw text -