capstone/bindings/ocaml
Rot127 4d291145d0
Convert all README's to markdown files. (#2863)
* Don't indent links and use https.
2026-02-14 13:56:07 +00: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 arm64: sync with LLVM 7.0.1 2019-04-10 14:17:08 +08:00
arm64_const.ml Combine aarch64 sys operand enums 2022-03-18 14:15:46 -04:00
arm_const.ml chore(version): Update Version to 6.0.0-Alpha3 (#2616) 2025-01-29 00:59:30 +08:00
capstone.ml fix typos (#2344) 2024-04-30 10:37:53 +08:00
evm_const.ml Apply new EVM opcode updates (#2602) 2025-01-28 20:51:43 +08:00
m68k_const.ml Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +08:00
m680x.ml M680X: Target ready for pull request (#1034) 2017-10-21 21:44:36 +08:00
m680x_const.ml Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +08:00
Makefile Architecture updater (auto-sync) - Updating AArch64 (#2026) 2023-11-15 12:12:14 +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 Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +08:00
ocaml.c Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00: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 chore(version): Update Version to 6.0.0-Alpha3 (#2616) 2025-01-29 00:59:30 +08:00
README.md Convert all README's to markdown files. (#2863) 2026-02-14 13:56:07 +00: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 Release prep v6 alpha5 (#2765) 2025-08-04 11:13:08 +00: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
systemz_const.ml Be ready for V6-Alpha1 (#2492) 2024-09-30 22:48:08 +08:00
sysz_const.ml Update SystemZ to LLVM commit 5ad902a6 (#1306) 2018-12-16 21:48:51 +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 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 Fix for x86_op record for ocaml bindings (#1539) 2019-09-26 16:46:21 +08:00
test_xcore.ml Ocaml: major update 2014-10-04 16:30:02 +08:00
tms320c64x_const.ml Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +08:00
wasm_const.ml Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +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 Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +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 Update operand type enums of all arch modules to the one in capstone.h (#2633) 2025-03-03 11:59:24 +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_.ml These code show how to access architecture-specific information for each architecture.