Why is the JVM stack-based and the Dalvik VM register-based?
There are a few attributes of a stack-based VM that fit in well with Java’s design goals: A stack-based design makes very few assumptions about the target hardware (registers, CPU features), so it’s easy to implement a VM on a wide variety of hardware. Since the operands for instructions are largely implicit, the object code … Read more