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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « Makefile.standalone ('k') | c2wasm-exe.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Wasm Prototype Experiment Notes 1 # Wasm Prototype Experiment Notes
2 2
3 Here's the command I use to test: 3 Here's the command I use to test:
4 4
5 ``` 5 ```
6 LD_LIBRARY_PATH=~/nacl/v8/out/native/lib.target make -j48 \ 6 LD_LIBRARY_PATH=~/nacl/v8/out/native/lib.target make -j48 \
7 -f Makefile.standalone WASM=1 && \ 7 -f Makefile.standalone WASM=1 && \
8 LD_LIBRARY_PATH=~/nacl/v8/out/native/lib.target ./pnacl-sz -O2 -filetype=asm \ 8 LD_LIBRARY_PATH=~/nacl/v8/out/native/lib.target ./pnacl-sz -O2 -filetype=asm \
9 -target=arm32 ./torture-s2wasm-sexpr-wasm/20000112-1.c.s.wast.wasm 9 -target=arm32 ./torture-s2wasm-sexpr-wasm/20000112-1.c.s.wast.wasm
10 ``` 10 ```
11 11
12 You'll probably need to adjust your `LD_LIBRARY_PATH` to point to where your v8 12 You'll probably need to adjust your `LD_LIBRARY_PATH` to point to where your v8
13 libraries are. 13 libraries are.
14 14
15 You'll need to build v8 as a shared library. Build it like this: 15 You'll need to build v8 as a shared library. Build it like this:
16 16
17 ``` 17 ```
18 make -j48 native component=shared_library 18 make -j48 native component=shared_library
19 ``` 19 ```
20 20
21 `wasm-run-torture-tests.py` can be used to run all the tests, or some subset. 21 `wasm-run-torture-tests.py` can be used to run all the tests, or some
22 Running a subset will enable verbose output. You can download the torture tests 22 subset. Running a subset will enable verbose output. You can download the
23 from the [WebAssembly waterfall](https://wasm-stat.us/console). 23 torture tests from the [WebAssembly waterfall](https://wasm-stat.us/console) or
24 by running `./fetch-torture-tests.sh`.
25
26
27 To compile and run an executable, do the following from the subzero directory.
28
29 ```
30 ./pnacl-sz -filetype=obj -o foo.o foo.wasm
31 clang -m32 foo.o src/wasm-runtime.c
32 ./a.out
33 ```
34
35 Other useful commands:
36
37 Compile a C file to a .wasm
38 ```
39 ./wasm-install/bin/emscripten/emcc hello-wasm.c -s BINARYEN=1
40 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm
41 ```
OLDNEW
« 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