Re:The Future of Programming
by tiglionabbit on Wednesday July 31, 2013 @03:49AM
(#6132400)
What if it modified the program text, instead of some external load-able value? Self-modifying code could allow explicit branch prediction.
Read more: http://en.wikipedia.org/wiki/Branch_predication EDIT: Also: http://en.wikipedia.org/wiki/Branch_predictor
I think we more commonly use the latter, which tries to guess which way the code will branch and load the appropriate jump target. It's actually typically very successful in modern processors.