Stop being the product.
Become the owner.
or
sign uplog in

Do Branches Taken Happen More Often in Prediction I was…

Do Branches Taken Happen More Often in Prediction

I was reading an article about CPU branch prediction. It said talked about two very dumb ways to predict. One was always predicting the branch would not be taken, and another that would always predict it would be taken. It claimed always predicting branch taken would generally be better but both were not really used because they're both pretty bad. It then talked about more intelligent ways to predict such as predicting the branch would always do what it did last time, using a history register, using help from a compiler which can leave hints in the binary what happens more often, and a bunch of ideas too complicated for me to understand. I was curious about the two "dumb" ways how it claimed always predicting branch taken would be better than always predicting not taken. Or maybe it was just wrong, it was just something I read off the internet not a textbook.
#technology
earnings
4,000 mlx total
$0  total
engagement
6 views
0 reactions

0 comments