• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1To compile Ocaml binding, Ocaml toolchain is needed. On Ubuntu Linux,
2you can install Ocaml with:
3
4    $ sudo apt-get install ocaml-nox
5
6To compile Ocaml binding, simply run "make" on the command line.
7
8
9This directory also contains some test code to show how to use Capstone API.
10
11- test_basic.ml
12  This code shows the most simple form of API where we only want to get basic
13  information out of disassembled instruction, such as address, mnemonic and
14  operand string.
15
16- test_detail.ml:
17  This code shows how to access to architecture-neutral information in disassembled
18  instructions, such as implicit registers read/written, or groups of instructions
19  that this instruction belong to.
20
21- test_<arch>.ml
22  These code show how to access architecture-specific information for each
23  architecture.
24