4 ms·
https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.ht... If the misaligned access is slow
by guappa 2y ago
https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.ht...
If the misaligned access is slow… it will be slow whether the compiler reads the variable or if you hand-write even slower and error prone code.
That said, please show me a protocol that generates unaligned accesses on any architecture. People writing protocols aren't noobs :)