[Lazarus] External SigFPE

Martin lazarus at mfriebe.de
Sat Jun 29 10:52:17 CEST 2013


On 29/06/2013 07:08, Ludo Brands wrote:

> 8087 style exceptions are raised on the next floating point instruction
> for speed optimization. If you want to raise the exception on the
> correct location you should insert an fwait opcode after every floating
> point operation which is very expensive.
> See what happens in the code that is calling the procedure. If any
> external code is involved, then you could consider masking some floating
> point exceptions. Freepascal (Delphi compatible) enables all exceptions
> which is not the default for fe. gcc. Use the SetExceptionMask function
> in unit mask for that.
>
> For more info see
> http://www.c-jump.com/CIS77/reference/Intel/CIS77_24319002/pg_0201.htm
>

We need to add that info to 
http://wiki.lazarus.freepascal.org/GDB_Debugger_Tips







More information about the Lazarus mailing list