On Sun, Jul 8, 2018 at 9:47 PM, Thorsten Engler <thorsten.eng...@gmx.net>
wrote:

>
>
> If the loop is being unrolled, what looks like a non-const expression
> becomes a const expression. So if SomeFunc is marked as pure, the compiler
> might be able to omit the call completely.
>
>
There were some time testing done with C++ language vs others, where C++
would beat anyone due to such optimization.

thanks,
Dmitry
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to