You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wasm/README.md
+73-16Lines changed: 73 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
# GraalWasm
3
2
4
3
GraalWasm is a WebAssembly engine implemented in GraalVM.
@@ -9,7 +8,6 @@ We are working hard towards making GraalWasm more stable and more efficient,
9
8
as well as to implement various WebAssembly extensions.
10
9
Feedback, bug reports, and open-source contributions are welcome!
11
10
12
-
13
11
## Building GraalWasm
14
12
15
13
### Prerequisites
@@ -25,10 +23,12 @@ To build GraalWasm, you need to follow the standard workflow for Graal projects.
25
23
We summarize the basic steps below:
26
24
27
25
1. Create a new folder where your repositories `mx` and `graal` should be located:
26
+
28
27
```bash
29
28
$ mkdir graalvm
30
29
$ cd graalvm
31
30
```
31
+
32
32
2. Clone `mx` and add it to the `PATH`:
33
33
34
34
```bash
@@ -50,6 +50,7 @@ $ export JAVA_HOME=[path to JDK]
50
50
```
51
51
52
52
5. Build the project:
53
+
53
54
```bash
54
55
$ mx --dy /truffle,/compiler build
55
56
```
@@ -61,7 +62,8 @@ which contains the GraalWasm implementation.
61
62
62
63
### Test setup
63
64
64
-
The `build` command will also create the `wasm-tests.jar`, which contains the main test cases. To run these tests, the WebAssembly binary toolkit is needed.
65
+
The `build` command will also create the `wasm-tests.jar`, which contains the main test cases. To run these tests, the
66
+
WebAssembly binary toolkit is needed.
65
67
66
68
1. Download the binary of the [WebAssembly binary toolkit(wabt)](https://github.com/WebAssembly/wabt) and extract it.
67
69
2. Set `WABT_DIR`:
@@ -73,6 +75,7 @@ $ export WABT_DIR=[path to wabt]/bin
73
75
### Run basic tests
74
76
75
77
After building GraalWasm, the `WasmTestSuite` can be run as follows:
0 commit comments