INTERMEDIATE CODE GENERATION
SYNTAX TREES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Reduction in strength means
|
replacing run-time computation by compile time computation
|
|
replacing a costly operation by a relatively cheaper one
|
|
Both (a) & (b)
|
|
removing loop invariant computation
|
Explanation:
Detailed explanation-1: -In software engineering, strength reduction is a compiler optimization where expensive operations are replaced with equivalent but less expensive operations.
Detailed explanation-2: -Strength reduction or reduction in strength is a technique in which we replace expensive operations with cheaper operations.
Detailed explanation-3: -2.9 Reduction in Strength: Reduction in strength replaces expensive operations by equivalent cheaper ones on the target machine.
Detailed explanation-4: -removing loop invariant computation. replacing run-time computation by compile time computation. replacing a costly operation by a relatively cheaper one. removing common sub-expressions.
There is 1 question to complete.