Re: 64 bit->48 bit pointer hacks...
> Is there some magic value I can write into "flag", that in
> combination with the understanding of how 64 bit pointers get
> truncated down to 48 bit virtual addresses that will allow me to
Technically, it is possible, but don't do it.
It is really terrible and non-portable hack.
amd64 is little endian, therefore:
class shortString {
char smallString[7];
char flag;
};
and the magic value for string is 64.
The string should be 0-terminated, therefore only 6 byte strings.
But again, don't do it.
Petr
Reply to: