[fpc-devel] Pointer cache for fast class/pointer access.

Sven Barth pascaldragon at googlemail.com
Sun Jan 22 09:15:16 CET 2012


On 21.01.2012 15:12, Florian Klaempfl wrote:
> Am 21.01.2012 14:25, schrieb Sven Barth:
>> On 20.01.2012 11:18, Skybuck Flying wrote:
>>> Finally if you do believe prefetching is a good alternative to a pointer
>>> cache or simply want to try out the effect of prefetching class pointers
>>> then I challenge you to implement it in a experimental branch of the
>>> free pascal compiler, so the prefetch idea can be tried out and tested !
>>
>> Why don't you try yourself whether it has a positive effect? "prefetch"
>> is already part of FPC's RTL since quite some time:
>> http://www.freepascal.org/docs-html/rtl/system/prefetch.html
>
> ... and the compiler itself uses it already for several years.

Out of interest: In what situations does the compiler use it?

Regards,
Sven




More information about the fpc-devel mailing list