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

本文标签: assemblyAArch64 instruction length disassembler codeStack Overflow