Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 542 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 542 Bytes

WebAssembly memory

Building the code

  • building the Rust Wasm module:
$ rustc --target wasm32-unknown-unknown --crate-type=cdylib src/lib.rs -o rust.wasm
  • building the AssemblyScript module:
$ npm install
$ npm run asbuild
  • executing the Node.js runtime:
$ node test.js
  • executing the Wasmtime runtime :
$ cargo run
  • building and running a local Rust executable that uses the same API as the Wasm module and running a Valgrind:
$ rustc src/lib.rs -o mem
$ ./mem
$ valgrind ./mem