Jim Huang
Jim Huang
We might need RISC-V instruction decoder for web-based execution. See [rvcodec.js: an online encoder/decoder for RISC-V instructions](https://luplab.cs.ucdavis.edu/2022/06/03/rvcodec-js.html)
Recent rv32emu relies on tail-call optimization (TCO), which causes build problems with [Emscripten](https://emscripten.org/). Thus, we have to turn it off. Apply the following changes: ```diff diff --git a/src/common.h b/src/common.h index...
> I am going to study and solve this issue. May I know if the original assignee still working on it? Go ahead!
> Tail call optimization is supported by Chrome (version 112) natively, see [roadmap of webassembly](https://webassembly.org/roadmap/). Thus, if tail call optimization is enabled during the build, only Chrome can run the...
After the initial WebAssembly build (#293), we can proceed with the following action items: 1. Create an HTML page, which we could potentially host on GitHub Pages, to enable the...
> Is it feasible for me to host the relevant porting files (such as HTML, JS files, etc.) and then rv32emu submodule for them? So that, rv32emu can adapt to...
> This [wasm branch](https://github.com/ChinYikMing/rv32emu/tree/wasm) has attempted to support this. Try it out by following the README. > It requires some source code modifications to work: > 1. Remove static modifier...
> To sum up, the Github page deployment will be a repository with two submodules: "wasm and corresponding glue js"(generated by `emcc` and hosted in sysprog21 organization) and "wasm porting...
> This [wasm branch](https://github.com/ChinYikMing/rv32emu/tree/wasm) has attempted to support this. Try it out by following the README. Test environment: macOS 14.2.1 + Apple Silicon (M1) I have installed emcc via [Homebrew](https://formulae.brew.sh/)....
Ben Smith's remarkable experiment, which involves compiling and running Clang in a web browser, is detailed in his project [Clang/LLD in WebAssembly](https://github.com/binji/wasm-clang). Drawing inspiration from this, we have the potential...