Re:TinyVM: A lightweight, fast virtual machine in < 500 l...
by erikb on Sunday July 03, 2011 @04:56AM
(#2723373)
Can you explain the difference? From my point of view, both are in principle loops that execute a set of Assembly-like instructions.
[ Parent
| on HN ]
Re:TinyVM: A lightweight, fast virtual machine in < 500 l...
by lobster_johnson on Sunday July 03, 2011 @08:04AM
(#2723549)
Emulators like QEMU are designed to emulate an existing instruction set such as x86, and they also need to emulate a specific memory model, interrupt model, I/O subsystem etc. VMs such as in this post are designed without such constraints.
Both are designed around the core principle of a "virtual machine" — decode some kind of stream of machine code instructions, execute each instruction, and maintain the stack and memory state along the way — but they target different use cases with different nuances in the implementation.