[fpc-pascal] Compilation speed on Apple M1

Jonas Maebe jonas at freepascal.org
Fri Nov 27 17:30:19 CET 2020

On 27/11/2020 01:46, Ryan Joseph via fpc-pascal wrote:
>> On Nov 22, 2020, at 4:08 AM, Florian Klämpfl via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>> Well... If the compiler can make such a difference,
>> This are the big low hanging fruits, their are only a few :) In particular the compiler benefits a lot from this as it iterates linked lists a lot.
> Just curious, how does the "prefetch intrinsic" help with iterating linked lists?

By prefetching the next element in the background while processing the
current element. Since the elements are not necessarily placed behind
each other in memory, the processor's built-in prefetcher can't handle this.


More information about the fpc-pascal mailing list