COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

OVERVIEW OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The optimization which avoids test at every iteration is
A
Loop unrolling
B
Loop jamming
C
Constant folding
D
None of the mentioned
Explanation: 

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.

There is 1 question to complete.