lastmjs / wasm-metal

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

How will stack operations be optimized? #29

Open appcypher opened 5 years ago

appcypher commented 5 years ago

My mind went to RISC-V when I saw this project, but you made a valid point that wasm is a stack machine.

Are you planning on making some of the instructions happen in registers or are all operations going to be strictly applied to memory addresses?

lastmjs commented 5 years ago

So far the plan is to emulate the stack in registers