lastmjs / wasm-metal

A bare metal physical implementation of WebAssembly. That's right, a WebAssembly CPU.
MIT License
363 stars 9 forks source link

implement as a risc-5 extension #25

Open unmellow opened 6 years ago

unmellow commented 6 years ago

I'm sure you heard of risc-5, and having this be a risc-5 module would allow you to have the risc-5 foundation manufacture it for you (for a price of course)

lastmjs commented 6 years ago

Interesting, I'll look into this. Thanks for bringing it up. Though I don't see how this would work...WebAssembly is an ISA, and risc-v is an ISA, so how would we implement the WebAssembly ISA as a risc-v extension? I think we need to implement a custom microarchitecture, considering the WebAssembly ISA is most likely completely different from risc-v (for example, WebAssembly is a stack machine).

unmellow commented 6 years ago

I heard all isa's were stack machines and that was just how they work I have no source's to back that up though edit: I know now that this is not true don't know why I thought otherwise although it may still be possible to have this be an incompatible risc-5 extension since you can pick whether or not to include any other extension this kinda defeats the point of running wasm and risc-5 on the same pc but at least they will manufacture it for you