4 ms·
Yes! Stack-based abstract machines are often used because they allow compact code that is very easy to create and interpret. As another example, Pascal p-code
by triska 7y ago
Yes! Stack-based abstract machines are often used because they allow compact code that is very easy to create and interpret.
As another example, Pascal p-code (UCSD p-code) is also stack-based:
https://en.wikipedia.org/wiki/P-code_machine https://en.wikipedia.org/wiki/P-code_machine
The Java Virtual Machine (JVM) also uses an operand stack:
https://en.wikipedia.org/wiki/Java_virtual_machine https://en.wikipedia.org/wiki/Java_virtual_machine
- jacobush 7y agoThat P-code was not (quite!) portable between computers, was a lost opportunity. How cool it would have been.