Prev

Home

Next

CPSC 418: Solution 6

Problem 1

Most significant disadvantages to segmented memory systems:


Problem 2


 
Given four segments: Absolute, Program, Data, Stack
switch segment { case ABSOLUTE: physical_addr = absolute_base + index; break; case PROGRAM: physical_addr = program_base + index; break; case DATA: physical_addr = data_base + index; break; case STACK: physical_addr = stack_base + index; break; }

Problem 3

Hardware resources required in a segmented memory system:

Operating system has to:

Problem 4

(Part 4a)

If a Brainiac does three times as much work per clock cycle as a Speeed-demon, then it can achieve equivalent performance.

(Part 4b)

Intel P6 is generally a Speed-demon.

Problem 5

(Part 5a)

Power2 has the following instructions which DEC Alpha does not:

(Part 5b)

The BCT instruction leads to extra count register in the Power2.
OR
The FMA and square-root instructions lead to larger floating point unit in the Power2.

NOTE: Simply saying that the more complex instructions in Power2 leads to more transistors is not sufficient.

(Part 5c)

In order for Power2 programs to utilize the performance features of the Power2 architecture, Power2 compilers must recognize cases where they can use the more complex instructions. In general this requires more sophisticated compilers than with simpler instruction sets.

Simple answer: compilers must recognize when they can use the more complex instructions.



Prev

Home

Next
Last modified: 26 Feb 96