Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cyberpunk
· 1y ago · 0 comments
Is it true that 0x00000000 is a valid memory address on aix? I’m sure I read it somewhere but struggled to confirm it..
Comments
[–]
pavlov
1y ago
Yes, I believe this was an optimization to allow IBM’s compiler to do speculative loads before a null check.
[–]
cyberpunk
OP
1y ago
Alien Infested uniX indeed :)
[–]
TickleSteve
1y 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.