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`.
6 lines
92 B
Plaintext
6 lines
92 B
Plaintext
(module
|
|
(memory (;0;) 0 0)
|
|
(func (export "oob")
|
|
i32.const 42
|
|
f32.load align=1))
|