[fpc-pascal] Binary code generated for Integer and PtrInt

Florian Klämpfl florian at freepascal.org
Sat Jan 3 00:27:18 CET 2015


Am 02.01.2015 um 23:02 schrieb Jonas Maebe:
> On 02/01/15 22:12, Florian Klämpfl wrote:
>> Am 02.01.2015 um 21:34 schrieb Jonas Maebe:
>>>> And except for AArch64, where 32 bit will, in principle, also be more
>>>> efficient than 64 bit in all cases. It can even use the lower 8/16/32
>>>> bit of a register as index in a memory references and sign/zero-extend +
>>>> optionally multiply it with the access size.
>> But integer operations are done always on 64 bit in FPC?
> 
> If you have
> 
> var
>   l: longint;
>   a: array of word;
> begin
>   a[l]:= ...
> end
> 
> then the index will still be a longint.
> 

True, so even less reasons to use PtrInt.




More information about the fpc-pascal mailing list