CSE 351: The Hardware/Software Interface

Spring 2012 Course Website Return home »

Homework 2: Function Calls, Switch Statements, and Optimizations

Assigned Friday, April 13, 2012
Due Date Friday, April 20, 2012 at 17:00


The purpose of written homework assignments is to get you thinking about the topics being covered in lecture and in readings in the textbook which are not represented in the hands-on, programming lab assignments. These written assignments also better prepare you for course examinations. It is worth noting that the book contains many pratice problems similar to the problems we ask on these written assignments. The solutions for those practice problems are located at the end of each chapter and should give you a feel for the kind of answers we expect you to turn in for these kind of assignments.


Since these written homeworks are not programming lab assignments, you will turn in your assignment online as electronic documents in PDF format. We will not accept any paper submissions.


Same rules as for homework #1

We will provide solutions to all of the problems in the written homework assignments in a timely fashion after the assignment is due. Since the late policy affords you a maximum of three late days, we cannot release solutions until the Wednesday following the assignment's due date, at the earliest.


From the textbook:

  1. Practice Problem 3.33 (You may check your answers at the end of the chapter.)
  2. Homework Problem 3.59
  3. Homework Problem 3.62


Make sure you are using the second edition of Computer Systems: A Programmer's Perspective. If you're not using the right book, you might be doing the wrong problems!

Submitting Your Work

Please turn in a PDF file containing your answers to the Catalyst Drop Box for this assignment. We will not accept submissions that are not in PDF format.