| Index: README-wasm.md
|
| diff --git a/README-wasm.md b/README-wasm.md
|
| index ef8d7bec0df1fea9edd8715b51d433ca5919a842..3c261bdc5e442b9cd15528ed09efba8bfd5e345e 100644
|
| --- a/README-wasm.md
|
| +++ b/README-wasm.md
|
| @@ -18,6 +18,24 @@ You'll need to build v8 as a shared library. Build it like this:
|
| make -j48 native component=shared_library
|
| ```
|
|
|
| -`wasm-run-torture-tests.py` can be used to run all the tests, or some subset.
|
| -Running a subset will enable verbose output. You can download the torture tests
|
| -from the [WebAssembly waterfall](https://wasm-stat.us/console).
|
| +`wasm-run-torture-tests.py` can be used to run all the tests, or some
|
| +subset. Running a subset will enable verbose output. You can download the
|
| +torture tests from the [WebAssembly waterfall](https://wasm-stat.us/console) or
|
| +by running `./fetch-torture-tests.sh`.
|
| +
|
| +
|
| +To compile and run an executable, do the following from the subzero directory.
|
| +
|
| +```
|
| +./pnacl-sz -filetype=obj -o foo.o foo.wasm
|
| +clang -m32 foo.o src/wasm-runtime.c
|
| +./a.out
|
| +```
|
| +
|
| +Other useful commands:
|
| +
|
| +Compile a C file to a .wasm
|
| +```
|
| +./wasm-install/bin/emscripten/emcc hello-wasm.c -s BINARYEN=1
|
| +./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm
|
| +```
|
|
|