[Cuis-dev] [Integrated] Should we rename these? Re: support for variable indexable subclasses of 8/16/32/64 bits
ken.dickey at whidbey.com
ken.dickey at whidbey.com
Mon May 27 06:37:17 PDT 2019
On 2019-05-27 05:56, Juan Vuletich via Cuis-dev wrote:
> On 5/27/2019 2:27 AM, Andres Valloud via Cuis-dev wrote:
>> If those selectors could be named after standard types of fixed length
>> too (like 'uintptr_t'), then great because e.g. nobody says what the
>> size of a C 'long' is.
>
> Yes. But 'uintptr_t' access would be 32 bit in 32 bit images, and 64
> bit in 64 bit images. 'int16', 'int32' and 'int64' would access 2, 4
> and 8 bytes at once on every platform. So they are different thing for
> me. Both make sense.
Worse, in 64-bit, different C/C++ "data models" have different widths
for "long".
LP64: long ==> double ; wchar_t ==> unsigned word
LLP64: long ==> word ; wchar_t ==> unsigned halfword
Toolchain dependent!
FYI,
-KenD
More information about the Cuis-dev
mailing list