capstone/bindings/ocaml
2017-07-30 19:06:29 +08:00
..
arm.ml bindings: update java/ocaml/python bindings after the last change on Arm core 2015-04-07 12:22:51 +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
arm64_const.ml binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +08:00
arm_const.ml binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +08:00
capstone.ml Add CS_MODE_MIPS2 to opt-in for COP3 instructions (#939) 2017-06-27 20:56:54 +08:00
m68k_const.ml binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +08:00
Makefile ocaml: rename test.ml to test_basic.ml 2015-06-03 22:21:13 +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
mips_const.ml binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +08:00
ocaml.c Add CS_MODE_MIPS2 to opt-in for COP3 instructions (#939) 2017-06-27 20:56:54 +08:00
ppc.ml ocaml: update after the latest change on PPC in the core 2014-10-17 22:27:26 +08:00
ppc_const.ml bindings: regenerate consts 2016-10-25 14:30:13 +08:00
README ocaml: rename test.ml to test_basic.ml 2015-06-03 22:21:13 +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
sparc_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +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_arm.ml java & ocaml: update these bindings following the addition of lshift field to arm_op_mem of Arm engine 2015-01-12 16:01:26 +08:00
test_arm64.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
test_basic.ml ocaml: recover test_basic.ml 2016-09-04 10:13:57 +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 binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +08:00
test_xcore.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
tms320c64x_const.ml binding: add Ocaml & Java const files for TMS320C64x 2017-04-17 21:24:06 +08:00
x86.ml binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +08:00
x86_const.ml binding: update following addition of GRP_BRANCH_RELATIVE 2017-07-30 19:06:29 +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
xcore_const.ml java/ocaml/python: update bindings after the last change on generic instruction groups 2014-10-31 15:47:17 +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_basic.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.