Question: A program consists of two nested loops, with a single branch instruction at the end of each loop and no other branch anywhere. The outer

A program consists of two nested loops, with a single branch instruction at the end of each loop and no other branch anywhere. The outer loop is executed 50 times and the inner loop 20 times. Determine the accuracy of the following three branch prediction strategies: (a) always predict not taken. (b) use 1 bit of history and the initial prediction is not taken, (c) use 2 bits of history assuming that the predictor starts off in the bottom left state from predict not taken with not taken self loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!