[fpc-pascal] Re: position of External: SIGFPE

Lukasz Sokol el.es.cr at gmail.com
Mon Mar 25 12:17:25 CET 2013


On 25/03/2013 09:29, Xiangrong Fang wrote:
>> We are now several decades later, but for compatibility reasons the
>> FPU on the x86 processors still uses the same logic. It is possible
>> to get the exception at the place where it happened by inserting
>> fwait instructions after every fpu operation. Those tell the cpu to
>> stop executing until the FPU has finished executing the previous 
>> instruction. That obviously slows down the code significantly. FPC
>> has no option to do this.
> 
> It is a pity.  I think this would be a very useful option for
> development.  Will the team consider adding this ? :-)
> 

Consider defining your floating-point-fpu-using operators with 
inline assembler fwait instruction added ? If possible...

L.




More information about the fpc-pascal mailing list