Type 0 is NULL/Error and detected from the three LSB.
But the remaining MSB are not checked...
So if the MSB are not cleared, this could lead to yet another type, 8-byte aligned. What could it be ?
A project log for aStrA : Aligned Strings format with attributes
Developing a more flexible pointer and structure format that solves POSIX and Cs historical problems.
Type 0 is NULL/Error and detected from the three LSB.
But the remaining MSB are not checked...
So if the MSB are not cleared, this could lead to yet another type, 8-byte aligned. What could it be ?
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
This would likely not be a pointer though.
It could be an error code, a break code, some attribute maybe... Limited to 12 bits (minus the 3 LSB) because otherwise the (eventually mis-casted) pointer would point out of the NULL page and fail to trigger an error.
Are you sure? yes | no