While it might seem intuitive that a 4-byte integer on a 64-bit CPU with an 8-byte word size would require 4-byte alignment, the reality is more nuanced. Many modern architectures, including x86-64 and ARM, actually support unaligned access, albeit with potential performance implications.
Share this article
4-byte int64-bit CPUARMCPUhardwarememory alignment
Comments