capstone/bindings/ocaml
2019-04-10 17:46:07 +08:00
..
arm64_const.ml arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
arm64.ml arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
arm_const.ml bindings: update ARM const after the last ARM update 2019-03-16 15:22:45 +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 M680X: Target ready for pull request (#1034) 2017-10-21 21:44:36 +08:00
evm_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
m68k_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
m680x_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
m680x.ml M680X: Target ready for pull request (#1034) 2017-10-21 21:44:36 +08:00
Makefile introduce PYTHON2 and PYTHON3 variables in the makefiles (#1236) 2018-08-29 12:26:53 +08:00
mips_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +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 arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
ppc_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
ppc.ml ocaml: update after the latest change on PPC in the core 2014-10-17 22:27:26 +08:00
README Rename test.c to test_basic.c with corresponding executable name change. (#923) 2017-05-11 22:58:12 +07:00
sparc_const.ml bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +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 Update SystemZ to LLVM commit 5ad902a6 (#1306) 2018-12-16 21:48:51 +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_basic.ml Rename test.c to test_basic.c with corresponding executable name change. (#923) 2017-05-11 22:58:12 +07:00
test_detail.ml ocaml: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 12:09:49 +08:00
test_m680x.ml M680X: Use same output style as other archs (#1439) 2019-03-22 11:07:15 +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
wasm_const.ml wasm: add wasm to bindings/const_generator.py 2019-02-02 18:33:12 +08:00
x86_const.ml bingdings: update X86 consts 2019-03-02 14:59:16 +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 bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +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.