Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hellofunk
· 6y ago · 0 comments
Biggest surprise for me is learning that a pointer is a whopping eight bites! I have always mistakenly assumed they were small and just four bites.
Comments
[–]
saagarjha
6y ago
It depends on the platform! On ILP64 and LP64 (and presumably P64, though I've never heard of this actually being used anywhere) they'll be 8 bytes, but not on most 32-bit architectures.
[–]
flyingfences
6y ago
Isn't that the _definition_ of a 32-bit (or 64-bit or 8-bit or however-many-bit) - that 32 bits is the length of a pointer?
[–]
saagarjha
6y ago
Certain strange platforms (arm64_32 for Apple Watch) run ILP32 on AArch64.