1 unstable release
0.0.1 | Feb 14, 2019 |
---|
#23 in #emscripten
4KB
THE GENERATOR
These are all ideas on how the final system could look like. Everything is still very much a work in progress.
wacc / wa++
wacc
and wa++
commands are supposed to serve as a drop-in replacement for clang
and clang++
respectively. They contain code needed for handling wasabi
-specific arguments as well as passing proper flags to clang
for wasm compilation.
One of wasabi
-specific arguments is the --gen
flag. It generates the necessary bindgen for a wasabi-generated
wasm file and
- Generating js wrapper code.
wacc test.c -o test.wasm --gen=web
- Generating wasmer wrapper code. It also determines the host data needed and creates a cargo project that can run the wasm file.
wa++ test.cpp -o test.wasm --gen=wasmer
- Generating nodejs wrapper code.
wacc test.c -o test.wasm --gen=node
refs
- Compilation Flags
Dependencies
~0.3–1MB
~19K SLoC