Hacker News new | ask | show | jobs
by assbuttbuttass 1033 days ago
Undefined and implementation defined are different in C. The number of bits in an int is implementation defined. Unaligned access is undefined.
1 comments

See sibling comment. The alignment requirements are implementation defined, and any multiple is legal. 1 byte is definitely a legal multiple.
Unaligned memory access is UB period, no ifs no buts.