=== Top of the Swiki === Attachments ===
Primitive Number Registry
* 1 to 519 Used by basic system.
* 117 external primtive call see Named Primitives
* 255 DynamicPrimitives -- Hans-Martin Mosner
* 610 to 625 for MIDI I/O --Stephen Pope
From the SqueakList, August 21, 1997:
The attached fileIn, once it is incorporated in the VM, supports primitive indices as high as 2047. The current system uses indices 1-519, so slots 520-2047 are, in principle, free.
The actual parameters in this file only provide a table for 699, because the C compiler I use barfs on bigger tables, but the logic is all there and works at this size.
The extra two bits of primitive index are stored in the high bits of the method header to be backward-compatible. We'll clean this up some day when we are bored and feel like putting out a new image format. Computationally, this wastes no compute time, since the primitive index is stored in the method cache, so the bit twiddling involved occurs only on cache misses. --Dan Ingalls