News for hackers. Stuff that matters.
Re:Fast and slow if-statements: branch prediction in modern ... by Zot95 on Tuesday May 25, 2010 @05:13PM (#1378650)
Interesting article. It has been a long time since I have worked this "close to the metal." Back when I coded at the machine level, there were no branch predictions performed by the processor to help maintain the pipeline. What you had were different opcodes for your conditional jumps - 1 for when the jump was likely, 1 for when it was not. It had amazed me (a bit) that never got reflected in higher level languages. Now that I see that the processor makes (educated?) guesses, I suppose I am no longer surprised.

There are no comments on this comment yet.