Project 7 | |||||||||||||||||||||
In this part of the course you will have to read chapter 7 of the book (The Virtual Machine (b)), after reading the chapter you will have to read the following instructions to be able to implement project 7. Instructions: Objectives: Extend the partial VM translator built in project 6 with the Program flow and Function Calls parts, according to the specification and implementation notes in sections 7.2 and 7.3. The contract: The same as in chapter 6. Implementation tips: Extend your VM translator in two stages:
The rest of the implementation tips are as in chapter 6. Test Programs Program Flow:
Function Calls:
Simple
test of the "function" & "return" commands. The function performs a simple
calculation and returns the result.
a
full test of the function call commands, the bootstrap section and most of the
other VM commands. Contains two .vm files:
Resources
|
|||||||||||||||||||||