INTRODUCTION TO COMPILER DESIGN
OVERVIEW OF COMPILERS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Loop unrolling
|
|
Loop jamming
|
|
Constant folding
|
|
None of the mentioned
|
Detailed explanation-1: -Loop unrolling is a code optimization technique: that avoids tests at every iteration of the loop. that improves preformance by decreasing the number of instructions in a basic block. that exchanges inner loops with outer loops.
Detailed explanation-2: -Loop unrolling is a technique used to increase the number of instructions executed between executions of the loop branch logic. This reduces the number of times the loop branch logic is executed.
Detailed explanation-3: -Improved floating-point performance-loop unrolling can improve performance by providing the compiler more instructions to schedule across the unrolled iterations. This reduces the number of NOPs generated and also provides the compiler with a greater opportunity to generate parallel instructions.