Y
Hacker News
new
|
ask
|
show
|
jobs
by
cyberpunk
269 days 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..
2 comments
pavlov
269 days ago
Yes, I believe this was an optimization to allow IBM’s compiler to do speculative loads before a null check.
link
cyberpunk
269 days ago
Alien Infested uniX indeed :)
link
TickleSteve
269 days ago
thats 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.
link