Rage Against the GameMonkey Machine - Part 2

Published May 10, 2010
Advertisement
In the first post on this subject I covered the compiler framework used in GameMonkey Script. We got to the point of being able to tokenise and parse the actual GameMonkey Script language into a syntax tree that gets run through the Code Generation routines. Before I go into the bytecode understood by the virtual machine, we must first cover some of the key elements of this machine. This post will focus on two core components - the gmVariable type and the stack.

The Virtual Machine - gmVariable

Before we can go into the structure of the bytecode and how it looks, it's important to understand some of the basics of the GameMonkey Virtual Machine. The machine itself is a stack-based virtual machine that provides a co-operative threading model and dynamic typing. Being a stack-based machine, many operatio... [Read more]
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement