[Vm-beginners] From Window to Compiler evaluate:

Chris Cunnington smalltalktelevision at gmail.com
Mon May 7 16:37:24 UTC 2012


How does the vm pass a string to the compiler in object memory to be 
evaluated?

The VM works with the OS so that a window collects a string in UTF-8 or 
Unicode and send it to the compiler in the object memory in RAM.

Date today

becomes

Compiler evaluate: 'Date today'

I see in MicroSqueak

Interpreter>>primitiveKbdPeek

sends things to the stack. I understand something called 'the stack' 
they way understand unicorns.

But is it true to say that the stack is a step on the way to the 
compiler in RAM?

Window-->characters-->vm-->primitiveKbdPeek-->stack-->object 
memory-->compiler--> Compiler evaluate:-->bytecodes

Then, after bytecodes have been generated, Interpreter>>interpret can do 
what it does. The output can make a trip back to the window going back 
the way it came.

How accurate or inaccurate is this description?

Thanks,
Chris


More information about the VM-beginners mailing list