|Version 3 (modified by cotto, 7 years ago)|
The VM for the Smalltalk interpreter Squeak has a design similar to our eventual goal for Parrot, namely that it has a small core of operations implemented in C with the rest of the language being implemented in terms of these operations. In hope of jumpstarting the design and implementation of Lorito (aka L1), this page lists the 42 operations used by Squeak's VM. The hope is that a similar set of operations can be used as Lorito ops.
Because most Parrot developers are not familiar with Smalltalk, so the following table lists the operations used to implement Squeak (available here), example Smalltalk code, a description, their equivalent in C syntax and an appropriate name for the Lorito op.
Memory access goes through a set of 6 macros for reading and writing single bytes, 4-byte words and 8-byte floats.
|Squeak operation||example Smalltalk code||description||equivalent C code||Lorito op|