4 ms·
Both are targets for a general purpose programming language. As OP commented below, wasm is a stack machine while riscv is a register machine. It would surprise
by thefaux 2y ago
Both are targets for a general purpose programming language. As OP commented below, wasm is a stack machine while riscv is a register machine. It would surprise me if there is any wasm program for which there is not a semantically equivalent and faster riscv implementation.
- JonChesterfield 2y agoWasm has locals and block arguments, it's no more a stack machine than risc-v is a stack machine.