An exploration of compiling Wasm to Dart.
- https://webassembly.github.io/spec/core/_download/WebAssembly.pdf
- https://webassembly.github.io/spec/core/exec/runtime.html
- https://webassembly.github.io/spec/core/intro/introduction.html
- https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format
- https://webassembly.github.io/spec/core/appendix/index-instructions.html
We generate our spec tests from the conformance suite at https://github.com/WebAssembly/spec/tree/main/test/core.
You need to have the wabt tools (wat2wasm, wasm2wat, ...) installed locally.
We have some initial benchmarks in the benchmark/ directory. Run either:
dart benchmark/gcd_bench.dart
, ordart benchmark/mandelbrot_bench.dart
dart tool/spec.dart --all
dart tool/spec.dart spec/test/core/i32.wast
dart tool/regen.dart samples/*.wat
dart tool/regen.dart samples/bcd.wat
git submodule update
or:
git submodule update --remote