admin 管理员组文章数量: 1086019
I'm looking for a very minimalistic ARM64 instruction length disassembler, so I can traverse through some instructions of a function.
I need a standalone function without many dependencies, because I need it for a kernel driver.
For x64 I was using .cpp but I can't find something like it for AArch64. There's some full disassembly libraries, but they come with a ton of source code and user land dependencies.
I don't even need support for any of the extension instruction sets like SVE
I'm looking for a very minimalistic ARM64 instruction length disassembler, so I can traverse through some instructions of a function.
I need a standalone function without many dependencies, because I need it for a kernel driver.
For x64 I was using https://github/gh-nomad/length-disassembler/blob/master/ldisasm.cpp but I can't find something like it for AArch64. There's some full disassembly libraries, but they come with a ton of source code and user land dependencies.
I don't even need support for any of the extension instruction sets like SVE
Share Improve this question asked Mar 30 at 8:28 5andr05andr0 2,1381 gold badge26 silver badges34 bronze badges1 Answer
Reset to default 5Every AArch64 instruction is 4 bytes long, naturally aligned.
There isn't an equivalent of Thumb mode compressed instructions for it (yet?), so you don't even have to look at the machine-code bytes to find instruction boundaries.
本文标签: assemblyAArch64 instruction length disassembler codeStack Overflow
版权声明:本文标题:assembly - AArch64 instruction length disassembler code - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1743993449a2515153.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论