[fpc-devel] Pointer cache for fast class/pointer access.
Sven Barth
pascaldragon at googlemail.com
Sun Jan 22 11:04:29 CET 2012
On 22.01.2012 10:34, Florian Klämpfl wrote:
> 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 ;)
Ah... inside the compiler's sources. I thought you meant "the compiler
inserts calls to prefetch in specific situations". ^^
Regards,
Sven
More information about the fpc-devel
mailing list