Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: README-wasm.md

Issue 1876413002: Subzero. WASM. Additional progress. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging with master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.standalone ('k') | c2wasm-exe.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
+```
« no previous file with comments | « Makefile.standalone ('k') | c2wasm-exe.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698