Advanced
Assembly Language
Q62 / 100
What is branch prediction and what is its impact on performance?
Correct! Well done.
Incorrect.
The correct answer is B) A CPU technique of guessing conditional branch outcomes in advance; mispredictions flush the pipeline costing ~15-20 cycles
B
Correct Answer
A CPU technique of guessing conditional branch outcomes in advance; mispredictions flush the pipeline costing ~15-20 cycles
Explanation
Modern CPUs speculatively execute branches. Misprediction flushes the pipeline. Write branch-friendly code (predictable patterns, CMOV for branchless alternatives).
Progress
62/100