Hacker News new | ask | show | jobs
by eru 30 days ago
Don't mix up what processors do with what the C standard allows you to get away with.
1 comments

...and don't mix up the C standard with what actually existing compilers allow you to get away with ;) In the end the standard is merely a set of guidelines. What matters is how compiler toolchains behave in the real word, and breaking code which does unaligned memory accesses by 'UB exploitation' would be quite insane.
Sanity ain't a hard requirement for C compilers.