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

Florian Klämpfl florian at freepascal.org
Sun Jan 22 10:34:06 CET 2012

Am 22.01.2012 09:15, schrieb Sven Barth:
> 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?

iirc somewhere in the hash lists and inside the assembler writer, just
grep for "prefetch(" in the compiler sources ;)

More information about the fpc-devel mailing list