CS520
Fall 2016
Laboratory 6
Friday October 7
The lab must be submitted prior to 12noon on Sunday October 9.


The goal for this lab is to continue working on Program 3 by implementing the heap and frame functions. This requires that you have completed Lab 5 by implementing initializeVM to read the class file into memory and implementing the functions for retrieving information from the class file. Points will be awarded in the following way:

  1. (40 points) Each of the 8 functions for supporting the heap will be worth 5 points.

  2. (60 points) Each of the 15 functions for supporting frames will be worth 4 points.

You can do your initial testing for this lab using the main programs: ~cs520/public/prog3/src/heapTest.c and ~cs520/public/prog3/src/frameTest.c. (Important: do not add any code to these files. All your code must be in either heap.c or frame.c.) Be sure to consider whether these tests are sufficient. You may need to do additional tests.

Turn in this laboratory by typing:

% ~cs520/bin/submit lab6 vm.c class.c heap.c frame.c

Submissions can be checked by typing:

% ~cs520/bin/scheck lab6

Remember that there are no late submissions of labs. Submit what you have prior to 12noon on Sunday October 9.


Last modified on August 19, 2016.

Comments and questions should be directed to pjh@cs.unh.edu