Re: 64 bit data types



Arthur Hoornweg wrote:
> Rod wrote:
>
>>> Integer (64 bit signed)
>>> Int64 (64 bit signed)
>>> Int128 (128 bit signed)
>>> DWORD (32 bit signed)
>>> Cardinal (64 bit signed)
>
>
>
> I wonder what'll happen to "longint" which is gonna be a half-integer
> anyway...
>
> But I do hope that "integer" will be implemented as Int64 or else much
> legacy code that typecasts pointers into integers will fall flat.

No, Win x64 uses a so called LLP64 data modell
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64/abstract_data_models.asp).
It can be assumed that Delphi for 64 bit will follow this which means
that only pointers will change their size to 64 bit.

With proper compiler warnings this causes usually no problems. Even big
applications with hundred thousands of lines of code can be ported
within a few hours.
.



Relevant Pages

  • Re: About some questions on PocketPC (CPU Usage,..)
    ... DWORD permissions = GetCurrentPermissions; ... __int64 creation; ... If this is not the first loop, ... SetProcPermissions(permissions); ...
    (microsoft.public.windowsce.app.development)
  • Re: 64 bit data types
    ... Rod wrote: ... Int64 ... DWORD ... I wonder what'll happen to "longint" which is gonna be a half-integer anyway... ...
    (borland.public.delphi.non-technical)
  • Re: Is __int64 dead?
    ... bool, char, int, __int64, are elegant names. ... BYTE, WORD, UINT, and even DWORD are not too bad. ...
    (microsoft.public.vc.mfc)