Hi all I am exploring the idea of making the DSL I manage generate WASM code. Any pointers on where to get started? I haven't found any projects that facilitate in generating wasm binaries themselves. As I understand Cranelift can take WASM as input and convert it to its own IR and then execute it via a JIT runtime. Where do I start to make my DSL generate WASM in the first place? Currently my DSL is implemented as a tree walking interpreter.
Looks like parity-wasm
can be used to do low level binary serialization of a WASM module
thanks I'll check that out
Another project to look at is Walrus
and wasm-encoder
: https://docs.rs/wasm-encoder/0.6.0/wasm_encoder/
Last updated: Nov 22 2024 at 17:03 UTC