Hacker News new | ask | show | jobs
by wahern 20 days ago
A null pointer doesn't need to map to the hardware address at 0x0. A null pointer constant of 0 in C code could have a different hardware address than 0x0, or be represented by a special bit independent of the other representation bits, and such machines have existed and, I think, still exist.

However, to make a pointer to a hardware address at 0x0 in C source code (for either dereferencing or comparison) requires using a special routine, intrinsic, or similar extension so the compiler doesn't track it as a null pointer during static analysis.