3 ms·
> Thanks to fixed-length instructions and alignment rules, you always know whether you're in thumb or not. As someone who did this literally yesterday, no you
by saagarjha 2y ago
> Thanks to fixed-length instructions and alignment rules, you always know whether you're in thumb or not.
As someone who did this literally yesterday, no you do not. Doing this properly requires tracing control flow, which is an undecidable problem. In fact x86-64 is way easier in practice because real code is somewhat self-synchronizing if you just disassemble linearly and for ARM this doesn’t work nearly as well.