Changes between Version 2 and Version 3 of LoritoPrimitives

Show
Ignore:
Timestamp:
08/10/09 22:07:33 (12 years ago)
Author:
cotto
Comment:

s/primitive/operation/ - primitive means something different in Smalltalkland

Legend:

Unmodified
Added
Removed
Modified
  • LoritoPrimitives

    v2 v3  
    1 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 primitives implemented in C with the rest of the language being implemented in terms of these primitives.  In hope of jumpstarting the design and implementation of Lorito (aka L1), this page lists the 42 primitives used by Squeak's VM.  Hopefully a similar set of primitives can be used as Lorito ops. 
     1The 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. 
    22 
    3 Because most Parrot developers are not familiar with Smalltalk, so the following table lists the primitives used to implement Squeak (available [http://www.cosc.canterbury.ac.nz/wolfgang.kreutzer/cosc205/squeak.html here]), example Smalltalk code, a description, their equivalent in C syntax and an appropriate name for the Lorito op. 
     3Because most Parrot developers are not familiar with Smalltalk, so the following table lists the operations used to implement Squeak (available [http://www.cosc.canterbury.ac.nz/wolfgang.kreutzer/cosc205/squeak.html here]), example Smalltalk code, a description, their equivalent in C syntax and an appropriate name for the Lorito op. 
    44 
    55Memory access goes through a set of 6 macros for reading and writing single bytes, 4-byte words and 8-byte floats.  
    66 
    7 ||Squeak primitive||example Smalltalk code||description||equivalent C code||Lorito op|| 
     7||Squeak operation||example Smalltalk code||description||equivalent C code||Lorito op|| 
    88||& |||||||||| 
    99||| ||||||||||