Chapter 10: Intermediate Representations
Getting Started (5 minutes)
- Review the
Studio Guidelines if necessary.
- Locate and install the studio10 project into your
eclipse workspace as directed by your instructor,
following the usual instructions.
- 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 (2 hours, before studio)
Read through the following materials:
Consider the following materials for reference:
- Tutorial by Carl Bredlau
- Tutorial (author unknown)
Run, read, and write some JVM programs (1 hour)
- Follow the instructions for ant builds.
- 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 (30 minutes)
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
Submit your work as directed by your instructor.
Copyright 2010 by Ron K. Cytron
Last modified 14:32:04 CDT 13 August 2010