I've been reading about how JVM is stack based, and this is register based. I also read about how both has its advantage and disadvantages. I also recently read about how there are CPUs out there that are essentially RISC in the core, but runs 'microcodes' on top to process/emulate higher level instructions.<div>
<br></div><div>I'm just wondering if it would be possible to somehow include, a 'stackmachine VM' on top of parrotVM, or would the emulation overhead defeat the purpose. </div><div><br></div><div>If we do take that route, would we make it so that a program instruction is 'either' stackbased, or register based (which is simpler as you can start the 'stackbased microcode' on demand)? Or can it be possible to mix the instruction sets to have bits of code be 'stack' and 'register'.</div>
<div><br></div><div><br></div>