Due by 5 PM, Wednesday Nov. 11, 1998
Chapter 2 of the text is the background reading for some of these problems.
1. Exercise 2.14 from the text. Please include a short justification for each subset--an equation will do.
2. (counts as 2 questions) Exercise 2.37 from the text, but just find one article. The more egregious, the better. Turn in a copy of the article, together with your analysis of it.
3. Exercise 3.17 from the text.
4. Exercise 5.25 from the text. Please answer this using the multi-cycle design of Chapter 5. Note that lui (load upper immediate) is not a ``load'' instruction (sorry about the name). The reason is that lui puts an immediate value in a register, and never touches the data memory.
5. (counts as 3 questions) Figure out how to use the tools pixie and pixstats on the MIPS-architecture CS machines elan and kastle. Then find or write two different (short!) C programs that solve the same problem in two different ways, and generate an opcode distribution histogram for each one, using the tools. For example, you might write an iterative algorithm and a recursive algorithm for some simple problem. You'll find that pixie and pixstats are easy to use--just check out the man pages and experiment a little. Turn in the following: