Re:Register-based VMs have a higher performance than stack-b...
by vilda on Monday December 12, 2016 @11:22AM
(#13159203)
You seem to be confused with theoretical stack-based machines with their clear implementation, and their practical implementations. There's no reason why stack-based machine cannot have one instruction to add a constant, for example "addc 125" to add 125 to the top of the stack.
Similarly, there's no reason why register-based VMs wouldn't have push/pop instructions.
Similarly, there's no reason why register-based VMs wouldn't have push/pop instructions.