Files
jak-project/third-party/capstone/bindings/java/README.md
T
Tyler Wilding bfc4c18ada goalc: replicate tests for the majority of ARM64 non-simd cases (#4377)
- Adds `capstone` as a disassembling library that could eventually
replace Zydis (for now left that alone)
- Replicates all of the existing x86 tests to ARM64, fixed a bunch of
underlying issues along the way
- There are a very small handful of tests remaining that need to be
enabled / fixed
2026-08-16 15:34:37 -04:00

31 lines
826 B
Markdown
Vendored
Generated

This has been tested with OpenJDK version 6 & 7 on Ubuntu-12.04 and
Arch Linux-3.11, 64-bit.
- OpenJDK is required to compile and run this test code.
For example, install OpenJDK 6 with:
`$ sudo apt-get install openjdk-6-jre-headless openjdk-6-jdk`
- Java Native Access is required to run the code, you can install it with:
`$ sudo apt-get install libjna-java`
- To compile and run this Java test code:
```
$ make
$ ./run.sh
```
This directory contains some test code to show how to use Capstone API.
- TestBasic.java
This code shows the most simple form of API where we only want to get basic
information out of disassembled instruction, such as address, mnemonic and
operand string.
- Test<arch>.java
These code show how to retrieve architecture-specific information for each
architecture.