1 unstable release
0.0.1 | Feb 25, 2022 |
---|
#212 in #risc-v
29KB
437 lines
Wari
Experimental WebAssembly Runtime for RISC processors.
Initially, wari will only target RISC-V. In the future, other processors may be targeted.
Runtime Stages
- Load module with
parity_wasm::elements::Module::from_bytes()
- Get individual module sections
- Pass each section into a converter to RISC instructions
- Optimize instructions based on known patterns that can be simplified
Steps 1 & 2 can happen at the same time (loading function) as well as 3 & 4 (with a peekable iterator).
Testing With QEMU
TODO