3 ms·
It really depends on architecture version and profile. Recent application profiles allow it. On microcontrollers misaligned access is still mostly forbidden as
by avian 8y ago
It really depends on architecture version and profile. Recent application profiles allow it. On microcontrollers misaligned access is still mostly forbidden as far as I know.
- api 8y agoThis inconsistency means you have to assume unaligned access is forbidden in portable code. Fun times.
- tinus_hn 8y agoMost code is not portable at the assembler level and compiler hides this kind of detail.
- dmitrygr 8y agoAllowed in v7m sometimes with a one cycle penalty for data. Not allowed for code. Not allowed for some instructions ( just like x86 requires alignment for some avx inductions)