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`.
8 lines
455 B
Markdown
8 lines
455 B
Markdown
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
|