The Classical Core VirtualMachine
Last updated at 12:06 am UTC on 17 January 2006
This proudly touted/hyped Virtual Machine written in Squeak (actually, it's Slang, a C-ized Smalltalk dialect) is all in one single little file interp.c which is generated from the Slang source (one doesn't need to know C to write a Squeak VM. That's really cool ;-)
In this little interp.c (only 20,954 lines of C codes in 563KB) there are the main components of the VM:
- ObjectMemory
- BytecodeInterpreter
- Primitives
One more cool thing about this VM is that a BytecodeInterpreter isa an Objectmemory ;-)
Actually, the real cool thing is support for Named Primitives.