Index: c2wasm-exe.sh |
diff --git a/c2wasm-exe.sh b/c2wasm-exe.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..9acf6a4d3a6c3b18f958d9a7f31b5ca4846ea34a |
--- /dev/null |
+++ b/c2wasm-exe.sh |
@@ -0,0 +1,6 @@ |
+#!/bin/bash |
Jim Stichnoth
2016/04/14 20:03:43
This is a pretty hacky script, I'd be happier with
Eric Holk
2016/04/15 15:24:26
Done.
|
+ |
+./wasm-install/bin/emscripten/emcc $1 -s BINARYEN=1 -s 'BINARYEN_METHOD="native-wasm"' -O2 && \ |
Jim Stichnoth
2016/04/14 20:03:43
80-col
You may want to put double-quotes around "
Eric Holk
2016/04/15 15:24:26
Done.
|
+./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \ |
+./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \ |
+clang -m32 a.out.o runtime/wasm-runtime.c -g |