Add a crate to interface with the WebAssembly spec interpreter
The WebAssembly spec interpreter is written in OCaml and the new crate uses `ocaml-interop` along with a small OCaml wrapper to interpret Wasm modules in-process. The build process for this crate is currently Linux-specific: it requires several OCaml packages (e.g. `apt install -y ocaml-nox ocamlbuild`) as well as `make`, `cp`, and `ar`.
This commit is contained in:
7
crates/fuzzing/wasm-spec-interpreter/ocaml/README.md
Normal file
7
crates/fuzzing/wasm-spec-interpreter/ocaml/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
This directory contains the necessary parts for building a library with FFI
|
||||
access to the Wasm spec interpreter. Its major parts:
|
||||
- `spec`: the Wasm spec code as a Git submodule (you may need to retrieve it:
|
||||
`git clone https://github.com/bytecodealliance/wasm-spec-mirror).
|
||||
- `interpret.ml`: a shim layer for calling the Wasm spec code and exposing it
|
||||
for FFI access
|
||||
- `Makefile`: the steps for gluing these pieces together into a static library
|
||||
Reference in New Issue
Block a user