Re:Register-based VMs have a higher performance than stack-b...
by bogomipz on Sunday December 11, 2016 @09:58PM
(#13155162)
>"Of course the advantages such as easy code generation and high code density make stack machines a good intermediate compilation target, which then gets compiled to a register machine for actual execution"
Are you referring to a specific language here or are you saying all register machine always compile to stack machines first?
Re:Register-based VMs have a higher performance than stack-b...
by userbinator on Monday December 12, 2016 @06:06AM
(#13157228)
In general they do. The JVM and .NET CLR being the most prominent examples.
https://en.wikipedia.org/wiki/Stack_machine#Performance_disa...
Of course the advantages such as easy code generation and high code density make stack machines a good intermediate compilation target, which then gets compiled to a register machine for actual execution.