A Conservative GC for WebAssembly.
All these instructions have been tested on a Linux machine. However, it should be possible to use a Mac. Install following requirements:
- Clone this repository.
- Install
wasmtime
from https://wasmtime.dev/ - Download
wasmtime-linux-c-api
from https://github.com/bytecodealliance/wasmtime/releases/tag/v0.34.1 . Extract the archive in the directory of this repository. - Download
wasi-sdk
from https://github.com/WebAssembly/wasi-sdk/releases. Extract the archive in the directory of this repository.
Make sure you extracted the archives of wasmtime and wasi in this repository. To build the test example, go to the parent directory.
make test.wasm
make wasm-gc
export LD_LIBRARY_PATH=./wasmtime-v0.34.1-x86_64-linux-c-api/lib:$LD_LIBRARY_PATH
./wasm-gc
Running last command should display array 0 10