[fpc-devel] Fwd: Re: An optimization suggestion for FPC
Jonas Maebe
jonas at freepascal.org
Sun Jun 28 15:18:12 CEST 2020
On 28/06/2020 14:18, J. Gareth Moreton wrote:
> Thanks Jonas. I'll see what I can put together. A record with a single
> field is a bit of a special case, but one I'll keep in mind. More than
> anything I'll have to study the disassembly to see what's happening, and
> if things are faster with primitive types simply because they're
> register variables (which are always faster than stack variables even on
> L1) or due to something else.
This issue is not register versus memory, it's "register + a bunch of
masking and inserting" versus memory, plus the code size overhead (which
will probably not have any noticeable effects in a small benchmark).
Jonas
More information about the fpc-devel
mailing list