Could we get a LP64 version identifier?

Don nospam at nospam.com
Tue Jan 27 06:59:05 PST 2009


bearophile wrote:
> Walter Bright:
>> Frits van Bommel:
>>> [1]: Hey, x86 technically has 6-byte pointers if you count segments as 
>>> part of the pointer (which would be mostly useless on currently popular 
>>> operating systems though).
>> It does, but I know of no compiler that supports that (C, C++, or any 
>> other), and code that needs to deal with that tends to be assembler.
> 
> 16 free bits suggest various possible usages, for example the length for small strings/arrays, halving the size of the array struct.
> 
> Bye,
> bearophile

They're not free bits. Those bits are in the segment registers, not in 
the pointer registers. Only the OS can change the segment registers. And 
it's a slow operation.



More information about the Digitalmars-d mailing list