Skip to content

Commit 270217a

Browse files
committed
Update docs
1 parent 7d3a882 commit 270217a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

docs/Demos.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
- **Basic WiFi/Gpio access, updating `wasm` file over-the-air**[demo](https://twitter.com/alvaroviebrantz/status/1221618910803513344), [github](https://github.com/alvarowolfx/wasm-arduino-wifi) [ESP32 / Web]
55
- **RGB lamp animation using WebAssembly**[demo](https://twitter.com/wasm3_engine/status/1222835097289752576), [github](https://github.com/vshymanskyy/Wasm3_RGB_Lamp) [nRF51 / nRF52 / ESP8266 / ESP32]
66
- **LCD display rendering with AssemblyScript**[demo](https://twitter.com/h1romas4/status/1228581467850100736), [github](https://github.com/h1romas4/m5stack-wasm3-testing) [M5Stack / ESP32]
7+
- **Conway's Game Of Life with AssemblyScript**[demo](https://www.youtube.com/watch?v=Hc2sbhGMrig), [github](https://github.com/h1romas4/maixduino-wasm3-testing) [Maixduino / K210]
8+

docs/Development.md

+37
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,40 @@ ninja
9292
## Build for microcontrollers
9393

9494
In `./platforms/` folder you can find projects for different targets. Some of them are using Platformio, so you can follow the regular pio build process. Others have custom instructions in respective `README.md` files.
95+
96+
## Build with WasiEnv
97+
98+
```sh
99+
wasimake cmake -GNinja ..
100+
ninja
101+
```
102+
103+
If you want to enable experimental WASM features during the build:
104+
105+
```sh
106+
export CFLAGS="-Xclang -target-feature -Xclang +tail-call"
107+
wasimake cmake -GNinja ..
108+
ninja
109+
```
110+
111+
Here's how some options can be used with different tools:
112+
113+
```log
114+
Clang target-feature option WABT option Chromium --js-flags option
115+
----------------------------------------------------------------------------------------------------------------
116+
+multivalue --enable-multi-value --experimental-wasm-mv
117+
+tail-call --enable-tail-call --experimental-wasm-return-call
118+
+bulk-memory --enable-bulk-memory --experimental-wasm-bulk-memory
119+
+nontrapping-fptoint --enable-saturating-float-to-int --experimental-wasm-sat-f2i-conversions
120+
+sign-ext --enable-sign-extension --experimental-wasm-se
121+
+simd128, +unimplemented-simd128 --enable-simd --experimental-wasm-simd
122+
```
123+
124+
```sh
125+
# List clang options:
126+
llc -march=wasm32 -mattr=help
127+
128+
# List Chromium options:
129+
chromium-browser --single-process --js-flags="--help" 2>&1 | grep wasm
130+
```
131+

0 commit comments

Comments
 (0)