Computer Science 61CL - Fall 1995 - Harvey - Midterm 2

Computer Science 61CL - Fall 1995 - Harvey - Midterm 2 - CS...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 61C - Midterm 2 (Fall 95) Computer Science 61C Midterm 2 - Fall 1995 Professor Harvey, B Your Name_____________________________________ login cs61c-___ Discussion section number ____ TA's name _____________________________________ This exam is worth 25 points, or 18.7% of your total course grade. The exam contains eight substantive questions, plus the following: Question 0 (1 point): Fill out this front page correctly and put your name and login correctly at the top of each of the following pages. This booklet contains six numbered pages including the cover page. Put all answers on these pages, please; don't hand in stray pieces of paper. This is an open book exam. Page 1 Question 1 (2 points): You are compiling the following C procedure to MAL: void foo(char a, char b) { baz(a); baz(b); baz(c); } Recognizing that your need to save the arguemnts on the stack, you begin your translation this way: foo: addi $sp, $sp, -6 file:///C|/Documents%20and%20Settings/Jason%20Raft. ..-%20Fall%201995%20-%20Harvey%20-%20Midterm%202.htm (1 of 5)1/27/2007 5:37:07 PM
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 61C - Midterm 2 (Fall 95) sb $4, 0($sp) sb $5, 1($sp) sw $31, 2($sp) ... In one sentence, what will go wrong when you run this procedure?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/26/2009 for the course CS 61CL taught by Professor Clancy during the Fall '08 term at Berkeley.

Page1 / 5

Computer Science 61CL - Fall 1995 - Harvey - Midterm 2 - CS...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online