4 ms·
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.
by hellofunk 6y ago
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.
- saagarjha 6y agoIt 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 agoIsn'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 agoCertain strange platforms (arm64_32 for Apple Watch) run ILP32 on AArch64.