jaltmayerpizzorno / wasm-gc-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasm-gc

A Conservative GC for WebAssembly.

Installation

All these instructions have been tested on a Linux machine. However, it should be possible to use a Mac. Install following requirements:

  1. Clone this repository.
  2. Install wasmtime from https://wasmtime.dev/
  3. 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.
  4. Download wasi-sdk from https://github.com/WebAssembly/wasi-sdk/releases. Extract the archive in the directory of this repository.

Build

Make sure you extracted the archives of wasmtime and wasi in this repository. To build the test example, go to the parent directory.

  1. make test.wasm
  2. make wasm-gc
  3. export LD_LIBRARY_PATH=./wasmtime-v0.34.1-x86_64-linux-c-api/lib:$LD_LIBRARY_PATH
  4. ./wasm-gc

Running last command should display array 0 10

About


Languages

Language:C++ 89.5%Language:Makefile 7.1%Language:C 3.4%