Close

More than an error

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.

yann-guidon-ygdesYann Guidon / YGDES 03/11/2024 at 03:041 Comment

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

Yann Guidon / YGDES wrote 09/01/2024 at 02:32 point

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