最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

assembly - AArch64 instruction length disassembler code - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 5

Every 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.

发布评论

评论列表(0)

  1. 暂无评论