wari

Crates.iowari
lib.rswari
version0.0.1
sourcesrc
created_at2022-02-25 06:16:49.688971
updated_at2022-02-25 06:16:49.688971
descriptionExperimental WebAssembly Runtime for RISC processors.
homepagehttps://github.com/AldaronLau/wari/blob/stable/wari/CHANGELOG.md
repositoryhttps://github.com/AldaronLau/wari
max_upload_size
id539272
size3,449
Jeron Aldaron Lau (AldaronLau)

documentation

https://docs.rs/wari

README

Wari

Experimental WebAssembly Runtime for RISC processors.

Initially, wari will only target RISC-V. In the future, other processors may be targeted.

Runtime Stages

  1. Load module with parity_wasm::elements::Module::from_bytes()
  2. Get individual module sections
  3. Pass each section into a converter to RISC instructions
  4. 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

Commit count: 16

cargo fmt