• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Capstone source is organized as followings.
2
3
4.                   <- core engine + README + COMPILE.TXT etc
5├── arch            <- code handling disasm engine for each arch
6│   ├── AArch64     <- ARM64 (aka ARMv8) engine
7│   ├── ARM         <- ARM engine
8│   ├── Mips        <- Mips engine
9│   ├── PowerPC     <- PowerPC engine
10│   ├── Sparc       <- Sparc engine
11│   ├── SystemZ     <- SystemZ engine
12│   ├── X86         <- X86 engine
13│   └── XCore       <- XCore engine
14├── bindings        <- all bindings are under this dir
15│   ├── java        <- Java bindings + test code
16│   ├── ocaml       <- Ocaml bindings + test code
17│   └── python      <- Python bindings + test code
18├── contrib         <- Code contributed by community to help Capstone integration
19├── cstool          <- Cstool
20├── docs            <- Documentation
21├── include         <- API headers in C language (*.h)
22├── msvc            <- Microsoft Visual Studio support (for Windows compile)
23├── packages        <- Packages for Linux/OSX/BSD.
24├── windows         <- Windows support (for Windows kernel driver compile)
25├── suite           <- Development test tools - for Capstone developers only
26├── tests           <- Test code (in C language)
27└── xcode           <- Xcode support (for MacOSX compile)
28
29
30Follow instructions in COMPILE.TXT for how to compile and run test code.
31
32Note: if you find some strange bugs, it is recommended to firstly clean
33the code and try to recompile/reinstall again. This can be done with:
34
35	$ ./make.sh
36	$ sudo ./make.sh install
37
38Then test Capstone with cstool, for example:
39
40	$ cstool x32 "90 91"
41
42At the same time, for Java/Ocaml/Python bindings, be sure to always use
43the bindings coming with the core to avoid potential incompatibility issue
44with older versions.
45See bindings/<language>/README for detail instructions on how to compile &
46install the bindings.
47