[fpc-other] News on Delphi x64
Marco van de Voort
marcov at stack.nl
Mon Nov 1 19:32:24 CET 2010
In our previous episode, Florian Klaempfl said:
>
> Actually sizeof(integer)=sizeof("alu register")
>
> There where multiple reasons why we left sizeof(integer)=4 on 64 bit
> architectures:
> - changing the size of data types always breaks a lot of existing code
> - sizeof(int) on Windows 64 bit is 4 as well
> - using 16 bit ints on i386 had a performance penalty while using 32 bit
> ints on x86-64 has none
> - there are probably a few applications which benefit from
> sizeof(integer)=8 instead of 4
> - code depending on sizeof(pointer)=sizeof(integer) might be broken
> anyways and it doesn't apply to 8 bit systems either (e.g. avr) or even
> TP, see above
See also http://www.stack.nl/~marcov/buildfaq/#toc-Section-5.1
More information about the fpc-other
mailing list