| Any more on #2? Mark Guzdial |
| Arthimetic operations - This is once again a speed ideal. Java uses float primitives which are much faster than Squeak's because squeak doesn't use primitive floats |
| Input/Ouput methods are oftne primitives |
| Joaquin was right wrt registers aren't any faster than any other memory in a VM. (Though there has been some interesting research on VMs that DO have registers but manipulate things so that the "registers" stay in L1/L2 cache.) The other reason for stack-based is simplicity in the machine language, which makes for easier implementation and easier optimization. Mark Guzdial |