Re:Unintended Instructions on x86
by pjc50 on Tuesday May 11, 2021 @06:10AM
(#27116256)
Indeed - misaligned instructions don't work on ARM, the instruction pointer has to be word-aligned.
[ Parent
| on HN ]
Re:Unintended Instructions on x86
by classichasclass on Tuesday May 11, 2021 @10:32AM
(#27118551)
Most RISC and RISC-derived instruction sets are this way. Power ISA also faults if the PC isn't aligned to 32 bits. ARM Thumb encoding makes this a hair more complex, but certainly less than x86.