Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

GCC always assumes aligned pointer accesses (2020)

⁨4⁩ ⁨likes⁩

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/

HN Discussion

source

Comments

Sort:hotnewtop
  • 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.

    source