Sujet : Re: New VSI post on Youtube
De : craigberry (at) *nospam* nospam.mac.com (Craig A. Berry)
Groupes : comp.os.vmsDate : 15. Aug 2024, 02:26:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v9jlfa$m0aq$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
On 8/14/24 7:35 PM, Stephen Hoffman wrote:
On 2024-08-14 19:49:28 +0000, Robert A. Brooks said:
On 8/14/2024 2:57 PM, Arne Vajhøj wrote:
>
compile/POINTER_SIZE=32, LINK/SEG=CODE=P0 etc. can all help get stuff working.
>
But it is not the right long term solution.
For C++, the default pointer size should have remained 32.
It was a mistake to change the default from what it was on Alpha and IA64.
It was a mistake to use 32 and not 64 on Alpha and Itanium, but that pain will continue for the foreseeable future.
It is past time to change the default. I suspect a lot of the
difficulties in porting are not just from pointer sizes but also integer
sizes. Specifying "long" because the docs for an API say to use a
longword is a 40-year-old habit that will be hard to break, and not all
of the APIs have 64-bit equivalents. A lot of things probably assume
"long" is the same size as "int" even though that is now no longer the
case. As far as I know there is no compiler switch to say
/DATA_MODEL=ILP32 to override the new default of LP64.