capstone/bindings/ocaml
2016-10-22 23:32:13 +08:00
..
arm64_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
arm64.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
arm_const.ml file.write() need bytes when file is opened in binary mode 2015-10-04 00:31:25 +08:00
arm.ml java/ocaml/python: support the newly added mem_barrier field of cs_arm struct 2014-11-11 23:00:35 +08:00
capstone.ml ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
Makefile Makefile: add 'check' target 2014-10-01 16:42:29 +08:00
mips_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
mips.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
ocaml.c ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
ppc_const.ml bindings: update some consts 2016-10-22 23:32:13 +08:00
ppc.ml ocaml: update after the latest change on PPC in the core 2014-10-17 22:27:26 +08:00
README ocaml: update README 2014-06-26 22:29:46 +08:00
sparc_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
sparc.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
systemz.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
sysz_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
test_arm64.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_arm.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_detail.ml ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
test_mips.ml ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
test_ppc.ml ocaml: typo (CS_MODE_32) in test_ppc.ml 2014-11-13 11:51:59 +08:00
test_sparc.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_systemz.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_x86.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_xcore.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test.ml ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
x86_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
x86.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00
xcore_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +08:00
xcore.ml ocaml: ocaml.c is wrongly implemented in various places. this fixes all the issues, and all test_<arch> works as expected now 2014-09-26 23:38:53 +08:00

To compile Ocaml binding, Ocaml toolchain is needed. On Ubuntu Linux,
you can install Ocaml with:

    $ sudo apt-get install ocaml-nox

To compile Ocaml binding, simply run "make" on the command line.


This directory also contains some test code to show how to use Capstone API.

- test.ml
  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_detail.ml:
  This code shows how to access to architecture-neutral information in disassembled
  instructions, such as implicit registers read/written, or groups of instructions
  that this instruction belong to.

- test_<arch>.ml
  These code show how to access architecture-specific information for each
  architecture.