ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
23 июля
1318258 Топик полностью
BlackMorda, мудак (09.06.2023 19:49, просмотров: 97) ответил POV на Ну, уверен что всё просто, это вопрос грамотности и аккуратности. Но может как-то сводно это есть по какой-либо статейке? Чтобы наконец осмыслить [речь про невыровненный доступ?][UPD]...
Есть в первоисточниках 

https://developer.arm.com/documentation/dui0552/a/the-cortex-m3-instruction-set/memory-access-instructions/ldr-and-str--immediate-offset


When Rt is PC in a word load instruction:

bit[0] of the loaded value must be 1 for correct execution

a branch occurs to the address created by changing bit[0] of the loaded value to 0

if the instruction is conditional, it must be the last instruction in the IT block.


и тут

https://developer.arm.com/documentation/dui0552/a/the-cortex-m3-instruction-set/about-the-instruction-descriptions/address-alignment

Unaligned accesses are usually slower than aligned accesses. In addition, some memory regions might not support unaligned accesses. Therefore, ARM recommends that programmers ensure that accesses are aligned. To trap accidental generation of unaligned accesses, use the UNALIGN_TRP bit in the Configuration and Control Register