capstone-engine / capstone

Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), Alpha, BPF, Ethereum VM, HPPA, LoongArch, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.
http://www.capstone-engine.org
7.62k stars 1.56k forks source link

Backward compatibility for ARM64. #2536

Open aquynh opened 2 weeks ago

aquynh commented 2 weeks ago

Feature

Please have API backward compatibility, so consts like CS_ARCH_ARM64, CS_ARM64_xxx still work out of the box - without having to do any configuration

Rot127 commented 2 weeks ago

For Python they are still missing (related to https://github.com/capstone-engine/capstone/issues/2468).

But for C we have the compatibility header. Which can be enabled with a single "#define" (as documented here).

Switching to v6-Alpha or any other version requires code changes anyways. Because instruction enumerations and details got more precise. Just as in the releases from v3, v4 and v5. With v6 this should no longer happen from now on. So if people have to touch their code a last time between releases anyways, in my opinion a single #define is not too much.