News for hackers. Stuff that matters.
Re:ARM or x86? ISA Doesn't Matter by saagarjha on Saturday August 31, 2024 @09:16PM (#41413393)
> 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.

Re:ARM or x86? ISA Doesn't Matter by sgerenser on Saturday August 31, 2024 @09:37PM (#41413508)
Why compare x86-64 to ARM32? ARM64 has no thumb and all instructions are 32 bit in length.
Re:ARM or x86? ISA Doesn't Matter by saagarjha on Saturday August 31, 2024 @10:01PM (#41413610)
Because they brought it up. 64-bit ARM is much easier yes