Studio 6



Getting Started

Locate and install the Studios/6 project into your eclipse workspace. Open report.txt in eclipse, fill in your team members' names, and keep the file open so that you can record your findings. Browse this studio document to get an idea of the work you will do in this session.



Preparation

Read through the following materials:

* Tutorial by Carl Bredlau
* Tutorial (author unknown)

Consider the following materials for reference:

* Detailed account of the JVM Instructions
* Detailed Jasmin documentation



Run, read, and write some JVM programs

Visit the Test1, Test2, Test3, Test4 .j programs. There are questions posed in each file. Follow the instructions and find answers to the questions, writing those answers into the files themselves.



Investigations

Investigate following questions and issues as a team and write up your findings.

The JVM is almost a zero-address machine.

* In what ways is the JVM not a zero-address machine?
* Why was it designed this way?

There are many ways of setting the contents of a JVM register to 0.

* Describe 3 relatively efficient ways
* Devise an incredibly inefficient way; see if your way is less efficient than some other group's
* Why is the JVM designed this way (with many ways of doing the same thing)?