3 ms·
How is there any discrepancy in accuracy? Isn’t it just a matter of following the spec?
by meisel 2y ago
How is there any discrepancy in accuracy? Isn’t it just a matter of following the spec?
- saagarjha 2y agolol, no. For one Capstone has a lot of bugs (it uses some old version of LLVM as its base) but the whole question of how to decode things is complicated because there are a lot of pitfalls and inconsistencies that different disassemblers handle differently. And what the hardware does is a different question entirely: it may not match the spec, or even other processors with the same ISA.
- xvilka 2y agoIt just updated to the nearly latest LLVM, so that argument is void: https://github.com/capstone-engine/capstone/blob/next/docs/cs_v6_release_guide.md#overview https://github.com/capstone-engine/capstone/blob/next/docs/c...
- woodruffw 2y agoThe spec is very large, not particularly well written, and is not “total” (in the sense that AMD64 and IA32e and other x86-64 flavors are all subtly different). There are a lot of ways to get it wrong; even XED (the reference decoder from Intel) has bugs. If I remember correct, the Intel SDM alone is over 3000 pages long.