
Episode 95: How Computers Work Part V - Assembly Language and the Operating System
The Science of Everything Podcast
00:00
How Can I Get Branch Prediction to Be Accurate?
The key is whether you can get branch prediction to be accurate enough so that the number of wrong guesses is not so large. Branch predictors in modern processes are very complicated and often have their own dedicated hardware. And we're not going to go into all the details, but i will just give you a few hints as to the sorts of techniques that can be used to do this. One technique is to simply keep track of all of the instructions that the programme, the current programme, has performed in the past and see which way they branched previously.
Transcript
Play full episode