CommonTalkVM

CommonTalkVM

This document specifies how the CommonTalk virtual machine works.

The main execution engine is the ctState object, it contains the following:

  • The "root" object, the only object in the system which does not have a parent object.

  • The "ct" object, this object contains the basic objects needed for operation of the virtual machine:

    • Object, the base object.

    • Code, an object containing a list of opcodes to be executed by the virtual machine.

    • NativeFunction, an object containing a reference to a native (as in C) function.

  • Stack, this is used to keep track of the execution as well as the "current" object, for instance, when a function is to be called, the "this" object, the name of the function and the function parameter.