Programming Languages and Compilers

 

Lecture 13

 

In this lecture we will look at interpretation and implementation of virtual machines.

 

The slides for this lecture can be found here, here and here.

 

Literature

 

Watt & Brown, chapter 8, the article The lean, mean, virtual machine, by Bill Venners about he JVM and the Jasmin User Guide.

 

Further background material can be found following the below links:

 

Java Virtual Machine - Online Instruction Reference Manual

 

The Java Virtual Machine Specification

 

Jasmin

 

Languages for the Java VM

 

Microsoft .NET

 

.Net General

 

The SML.NET compiler

 

Exercises

 

Exercises for lecture 13 will be done from 8.15 till 10.00 before Lecture 114 on Friday the 9th of May.

 

  1. Do Watt and Brown exercise 8.1 page 331
  2. Do Watt and Brown exercise 8.2 page 331
  3. Do Watt and Brown exercise 8.3 page 331
  4. Do Watt and Brown exercise 8.5 page 332
  5. Do Watt and Brown exercise 8.6 page 332
  6. Do Watt and Brown exercise 8.8 page 332
  7. Do Watt and Brown exercise 8.10 page 333
  8. Take a look at the Java source for the Triangle Abstract Machine starting with the file Interpreter.java.