[Info-vax] New VSI post on Youtube
Craig A. Berry
craigberry at nospam.mac.com
Thu Sep 5 13:30:57 EDT 2024
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.
More information about the Info-vax
mailing list