Write a program in any high level programming language to perform the following : Read a text file containing a sequence of branches, for each branch, predict the branch to be taken based on the three branch prediction techniques:
a. Static – Predict Take
b. Static – Predict Not Taken
c. Dynamic Branch Prediction
6-state scheme where change prediction only if get misprediction three times
Run the program for the three attached input files and collect the program outputs in a Word file. Also in your file answer the following:
1. What technique gives the best performance for a single test case? Why?
2. What technique gives the worst performance for a single test case? Why?
3. What technique gives the best performance ON THE AVERAGE for a all test cases? Why?
4. Based on answers above, what technique is the most flexible?
I need this program to be done in high level language i.e java
Are you looking for a similar paper or any other quality academic essay? Then look no further. Our research paper writing service is what you require. Our team of experienced writers is on standby to deliver to you an original paper as per your specified instructions with zero plagiarism guaranteed. This is the perfect way you can prepare your own unique academic paper and score the grades you deserve.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.