Contents
- Introduction
- 1. Be sure you really need a primitive
- 2. Design the Smalltalk Interface
- 3. Design the C Interface
- 4. Write the Smalltalk Prim-Calling Method
- 5. Write the Smalltalk Primitive Method
- 6. Write the Smalltalk "Glue" Method
- 7. Add an Entry to the Interpreter's Primitive Table
- 8. Regenerate the Interpreter
- 9. Write the C Code
- 10. Add Function Prototype(s) to the Squeak Header file
- 11. Add your C File to the VM Make/Project File
- 12. Recompile the VM
- 13. Test It
- Notes
- Epilog: Wouldn't it be nice if ...