Re: C++ integral types on 64-bit Windows
From: Carl Daniel [VC++ MVP] (cpdaniel_remove_this_and_nospam_at_mvps.org.nospam)
Date: 04/01/04
- Next message: Hari: "Importing classes from Dll"
- Previous message: Siegfried Heintze: "Re: How to add nuisance features to ActiveX control?"
- In reply to: George: "Re: C++ integral types on 64-bit Windows"
- Next in thread: Hendrik Schober: "Re: C++ integral types on 64-bit Windows"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Apr 2004 07:45:38 -0800
George wrote:
> "Carl Daniel [VC++ MVP]"
> <cpdaniel_remove_this_and_nospam@mvps.org.nospam> wrote in message
> news:#2P03l$FEHA.2612@TK2MSFTNGP09.phx.gbl...
>> George wrote:
>>> Hi
>>>
>>> Can anybody explain to me how the C++ integral types are scaled
>>> between 32-bit and 64-bit Windows ?
>>> I'm especially interested in 'int' and 'long'.
>>
>> int and long both remain 32 bits on 64 bit windows.
>
> It is very strange,
> because most of other platforms (e.g. Linux, FreeBSD with gcc)
> have 64-bit 'long' on a 64-bit architecture (e.g. IA64).
>
> In my opinion it is righteous.
>
> What is the reason to have 32-bit 'long' on 64-bit platform?
Improved portability from 32 bit windows. Do some research - there are lots
of articles out there about 64 bit windows and why they chose the particular
model they did. Most of the articles will be from 2000 or so (perhaps
earlier).
-cd
- Next message: Hari: "Importing classes from Dll"
- Previous message: Siegfried Heintze: "Re: How to add nuisance features to ActiveX control?"
- In reply to: George: "Re: C++ integral types on 64-bit Windows"
- Next in thread: Hendrik Schober: "Re: C++ integral types on 64-bit Windows"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|