[fpc-devel] no exceptions from arithmetical operations on AArch64

Michael Schnell mschnell at lumino.de
Fri May 29 09:38:43 CEST 2015


On 05/29/2015 08:37 AM, Jonas Maebe wrote:
>
> The compiler adds an explicit comparison to ensure that in case of an 
> integer division by zero, a run time error is raised anyway. The same 
> is done on PowerPC, which doesn't trigger an exception for integer 
> division by zero either.

As jumps in many cases are slow due to queue issues, this might be a 
severe performance hit.

How much slower is the code after introducing the check ?

Can the check be disable for high performance code snippets ?

What does gcc work  on that behave ?

-Michael



More information about the fpc-devel mailing list