Tom Kelliher, CS 240
Apr. 23, 1999
Pipelining.
More caches.

Solutions:
Static prediction. Truly static. Compile-time determined.
Dynamic prediction. Branch history tables. One-, two-bit counters.
Assumes you know branch outcome early.
Code scheduling:

Consideration: deeper pipelines.
Data not available when needed.
ALU example:

Fixed by forwarding.
Memory example:

How can this be fixed? Data prediction.
Dynamic scheduling:

Logical vs. physical registers.
Generic structure of Pentium Pro, PowerPC 604:

The memory hierarchy:

Data cache hit rates for MediaBench:

Instruction cache hit rates for MediaBench:

Measuring effective access time.