GATE 2008
May 17, 2024Question 3925 – Compiler-Design
May 17, 2024Question 3744 – Compiler-Design
Loop unrolling is a code optimization technique:
Correct Answer: A
Question 223 Explanation:
→ Loop unrolling is a code optimization technique that avoids tests at every iteration of the loop.
→ The goal of loop unwinding is to increase a program’s speed by reducing (or) eliminating instructions that control the loop, such as pointer arithmetic and “end of loop” tests on each iteration.
→ The goal of loop unwinding is to increase a program’s speed by reducing (or) eliminating instructions that control the loop, such as pointer arithmetic and “end of loop” tests on each iteration.
that avoids tests at every iteration of the loop.
that improves performance by decreasing the number of instructions in a basic block.
that exchanges inner loops with outer loops
that reorders operations to allow multiple computations to happen in parallel
