-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
133 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
To compile Ocaml binding, Ocaml toolchain is needed. On Ubuntu Linux, | ||
To compile OCaml bindings, OCaml toolchain is needed. On Ubuntu Linux, | ||
you can install Ocaml with: | ||
|
||
$ sudo apt-get install ocaml-nox | ||
$ sudo apt-get install ocaml opam | ||
|
||
To compile Ocaml binding, simply run "make" on the command line. | ||
To compile OCaml bindings, simply run "opam install ." on the command line. | ||
|
||
|
||
This directory also contains some test code to show how to use Capstone API. | ||
|
||
- test_basic.ml | ||
- test/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: | ||
- test/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 | ||
- test/test_<arch>.ml | ||
These code show how to access architecture-specific information for each | ||
architecture. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
opam-version: "2.0" | ||
maintainer: "Capstone developers" | ||
authors: ["Capstone developers"] | ||
homepage: "https://github.com/capstone-engine/capstone" | ||
bug-reports: "https://github.com/capstone-engine/capstone/issues" | ||
dev-repo: "git+https://github.com/capstone-engine/capstone.git" | ||
license: "MIT" | ||
build: [ | ||
["dune" "build" "-p" name "-j" jobs] | ||
] | ||
depends: [ | ||
"ocaml" {>= "4.14.0"} | ||
"dune" {>= "2.0.0"} | ||
"dune-configurator" | ||
] | ||
depexts: [ | ||
["capstone"] {os-family = "bsd"} | ||
["capstone-dev"] {os-family = "debian"} | ||
["capstone"] {os-distribution = "homebrew"} | ||
["capstone-dev"] {os-distribution = "alpine"} | ||
["capstone-devel"] {os-family = "suse" | os-family = "opensuse"} | ||
["capstone-devel"] {os-distribution = "centos" | os-distribution = "fedora"} | ||
] | ||
synopsis: "OCaml bindings for Capstone, a disassembly framework" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
(lang dune 3.10) | ||
(name capstone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.