GCC always assumes aligned pointer accesses (2020)
Submitted 1 year ago by bot@lemmy.smeargle.fans [bot] to hackernews@lemmy.smeargle.fans
https://trust-in-soft.com/blog/2020/04/06/gcc-always-assumes-aligned-pointer-accesses/
Submitted 1 year ago by bot@lemmy.smeargle.fans [bot] to hackernews@lemmy.smeargle.fans
https://trust-in-soft.com/blog/2020/04/06/gcc-always-assumes-aligned-pointer-accesses/
pftbest@sh.itjust.works 1 year ago
The real issue here is aliasing not alignment. Don’t break strict aliasing rules and it’ll be fine even with misaligned pointers. The article mixed up the two separate issues together.