1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00

README: add webassembly embeddings/runtimes.

This commit is contained in:
Joel Martin 2019-04-17 00:35:39 -05:00
parent dad306ed73
commit d88adace47
2 changed files with 18 additions and 5 deletions

View File

@ -1032,13 +1032,26 @@ mono ./stepX_YYY.exe
The WebAssembly implementation is written in
[Wam](https://github.com/kanaka/wam) (WebAssembly Macro language) and
runs under the [wac/wace](https://github.com/kanaka/wac) WebAssembly
runtime.
runs under several different non-web embeddings (runtimes):
node,
[wasmtime](https://github.com/CraneStation/wasmtime),
[wace](https://github.com/kanaka/wac),
[warpy](https://github.com/kanaka/warpy).
```
cd wasm
make
# node
make wasm_MODE=node
./run.js ./stepX_YYY.wasm
# wasmtime
make wasm_MODE=wasmtime
wasmtime --dir=./ --dir=../ --dir=/ ./stepX_YYY.wasm
# wace
make wasm_MODE=wace_libc
wace ./stepX_YYY.wasm
# warpy
make wasm_MODE=warpy
warpy --argv --memory-pages 256 ./stepX_YYY.wasm
```
### Yorick

View File

@ -1,7 +1,7 @@
MODE ?= $(strip \
$(if $(filter wasmtime,$(wasm_MODE)),\
$(if $(filter wasi wasmtime,$(wasm_MODE)),\
wasi,\
$(if $(filter node js wace_fooboot warpy,$(wasm_MODE)),\
$(if $(filter direct node js wace_fooboot warpy,$(wasm_MODE)),\
direct,\
libc)))