capstone/bindings/ocaml
2014-10-01 16:42:29 +08:00
..
arm64_const.ml rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +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 rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +08:00
arm.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
capstone.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
Makefile Makefile: add 'check' target 2014-10-01 16:42:29 +08:00
mips_const.ml rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +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: remove fields regs_read_count, regs_write_count, groups_count, as they can be derived from the lengths of related arrays 2014-09-27 00:40:34 +08:00
ppc_const.ml rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +08:00
ppc.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
README ocaml: update README 2014-06-26 22:29:46 +08:00
sparc_const.ml rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +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 rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +08:00
test_arm64.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_arm.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_detail.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_mips.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_ppc.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_sparc.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_systemz.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_x86.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test_xcore.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
test.ml ocaml: rename cs_disasm() back to cs_disasm_quick(), which rightly reflects its nature 2014-09-28 23:56:02 +08:00
x86_const.ml rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +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 rename all the constants marking ending from _MAX to _ENDING. this also updates Java/Python/Ocaml bindings accordingly 2014-09-29 17:15:25 +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.