https://github.com/ardaku/wari
Experimental WebAssembly Runtime for RISC processors.
https://github.com/ardaku/wari
Last synced: 6 months ago
JSON representation
Experimental WebAssembly Runtime for RISC processors.
- Host: GitHub
- URL: https://github.com/ardaku/wari
- Owner: ardaku
- License: apache-2.0
- Created: 2020-08-11T05:49:38.000Z (about 5 years ago)
- Default Branch: v0
- Last Pushed: 2024-03-02T20:51:13.000Z (over 1 year ago)
- Last Synced: 2025-04-22T21:12:30.406Z (6 months ago)
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE_2_0.txt
Awesome Lists containing this project
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()`](https://docs.rs/parity-wasm/0.42.2/parity_wasm/elements/struct.Module.html#method.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 simplifiedSteps 1 & 2 can happen at the same time (loading function) as well as 3 & 4
(with a peekable iterator).## Testing With QEMU
TODO