README: add webassembly embeddings/runtimes.
authorJoel Martin <github@martintribe.org>
Wed, 17 Apr 2019 05:35:39 +0000 (00:35 -0500)
committerJoel Martin <github@martintribe.org>
Wed, 17 Apr 2019 05:35:39 +0000 (00:35 -0500)
README.md
wasm/Makefile

index bd89835..5deadc8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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
index 53cc5dd..aeba518 100644 (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)))