• Home
Name Date Size #Lines LOC

..--

MakefileD03-May-20247.9 KiB300202

READMED03-May-2024801 2416

arm.mlD03-May-20241 KiB5647

arm64.mlD03-May-2024832 4740

arm64_const.mlD03-May-202428.3 KiB1,007990

arm_const.mlD03-May-202420.1 KiB776763

capstone.mlD03-May-20247.2 KiB215183

evm_const.mlD03-May-20244 KiB152149

m680x.mlD03-May-2024830 4939

m680x_const.mlD03-May-202411 KiB416410

m68k_const.mlD03-May-202413 KiB486476

mips.mlD03-May-2024410 2519

mips_const.mlD03-May-202423.1 KiB862855

ocaml.cD03-May-202432.2 KiB1,106960

ppc.mlD03-May-2024487 3527

ppc_const.mlD03-May-202437 KiB1,3661,359

sparc.mlD03-May-2024420 2821

sparc_const.mlD03-May-202411.9 KiB430423

systemz.mlD03-May-2024437 2822

sysz_const.mlD03-May-202469.7 KiB2,5242,518

test_arm.mlD03-May-20243.2 KiB10684

test_arm64.mlD03-May-20243 KiB10280

test_basic.mlD03-May-20243.6 KiB6859

test_detail.mlD03-May-20244.1 KiB8874

test_m680x.mlD03-May-20246.9 KiB168147

test_mips.mlD03-May-20242 KiB7660

test_ppc.mlD03-May-20242.2 KiB8266

test_sparc.mlD03-May-20242.3 KiB8062

test_systemz.mlD03-May-20242.2 KiB8163

test_x86.mlD03-May-20243.4 KiB11895

test_xcore.mlD03-May-20242.1 KiB7962

tms320c64x_const.mlD03-May-20248.6 KiB278269

x86.mlD03-May-2024746 4842

x86_const.mlD03-May-202455.9 KiB1,9631,953

xcore.mlD03-May-2024411 2720

xcore_const.mlD03-May-20244.2 KiB162157

README

1To compile Ocaml binding, Ocaml toolchain is needed. On Ubuntu Linux,
2you can install Ocaml with:
3
4    $ sudo apt-get install ocaml-nox
5
6To compile Ocaml binding, simply run "make" on the command line.
7
8
9This directory also contains some test code to show how to use Capstone API.
10
11- test_basic.ml
12  This code shows the most simple form of API where we only want to get basic
13  information out of disassembled instruction, such as address, mnemonic and
14  operand string.
15
16- test_detail.ml:
17  This code shows how to access to architecture-neutral information in disassembled
18  instructions, such as implicit registers read/written, or groups of instructions
19  that this instruction belong to.
20
21- test_<arch>.ml
22  These code show how to access architecture-specific information for each
23  architecture.
24