capstone/bindings/ocaml
Nguyen Anh Quynh 820d7d02c7 Merge pull request #669 from zachriggle/next-mips
Add MIPS_GRP_INT and MIPS_GRP_CALL
2016-05-14 09:36:49 +08:00
..
arm64_const.ml Missing definition 2015-08-02 20:13:29 +02: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 bindings: update newly added ARM groups CALL & INT 2015-05-08 23:59:15 +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
capstone.ml bindings: update java/ocaml/python after the latest changes in the core for the new API 2015-03-25 17:35:59 +08:00
m68k_const.ml bindings: update Java & Ocaml after recent change on M68k interface 2016-05-12 21:47:48 +08:00
Makefile ocaml: rename test.ml to test_basic.ml 2015-06-03 22:21:13 +08:00
mips_const.ml Add MIPS_GRP_XXX aliases for generic types. 2016-05-03 07:30:31 -07: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 binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +08:00
ppc_const.ml bindings: support QPX mode & QPX alias instructions 2015-03-12 17:03:33 +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: rename test.ml to test_basic.ml 2015-06-03 22:21:13 +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 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_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
x86_const.ml binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +08:00
x86.ml binding: remove cx_x86_op::fp following the change in the core 2016-04-24 00:16:08 +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_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.