19

Reading and Writing Assignments, Discussion Topics
COS/ELE 375

for class on Monday Dec. 6, 2010


Please re-read Section 4.9 of the text, pp. 510-516 of Section 5.4, and read pages B-33 through B-38.

You have a project milestone due Friday, so no written assignment today.

But please be prepared to discuss the following in class:


The MIPS subset we've been studying can cause only a small number of exceptions: integer overflow and undefined instruction appeared in chapter 4, TLB miss and page fault in chapter 5. In the full architecture--like any other--there are a lot more:

Exceptions can usefully be classified in a number of ways, which we will discuss. Here are some: Did the program cause the exception (and hence "deserve" the consequences), or did it happen for a reason outside the program? In the former case, can the exception-causing instruction be allowed to finish before the exception is handled? Should the program or process be resumed or should it be terminated? And what, if anything, should be done about the exception, perhaps partly by the operating system? Please think about, and be prepared to discuss, how the exceptions from the above list (and any others you care to bring up) yield different answers to these classification questions.