Beginner
Compilers & Programming Language Theory
Q19 / 100
What is loop unrolling?
Correct! Well done.
Incorrect.
The correct answer is B) A compiler optimization replicating loop body multiple times to reduce loop overhead and enable instruction-level parallelism
B
Correct Answer
A compiler optimization replicating loop body multiple times to reduce loop overhead and enable instruction-level parallelism
Explanation
Loop unrolling: for(i=0;i<8;i++) body → body body body body body body body body (8 copies, no loop). Reduces branch overhead, increases ILP. Downside: larger code, more register pressure.
Progress
19/100