[fpc-devel] Pure function Wiki page

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Jul 9 03:54:32 CEST 2018


On Sun, Jul 8, 2018 at 9:47 PM, Thorsten Engler <thorsten.engler at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180708/75e1bf54/attachment.html>


More information about the fpc-devel mailing list