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




--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to