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
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to