3 ms·
Is it true that 0x00000000 is a valid memory address on aix? I’m sure I read it somewhere but struggled to confirm it..
by cyberpunk 1y ago
Is it true that 0x00000000 is a valid memory address on aix? I’m sure I read it somewhere but struggled to confirm it..
- pavlov 1y agoYes, I believe this was an optimization to allow IBM’s compiler to do speculative loads before a null check.
- cyberpunk 1y agoAlien Infested uniX indeed :)
- TickleSteve 1y agothats true on many systems... nothing special about 0x0 other than NULL happens to be defined as 0 in most toolchains an some functions use NULL to report an error.