User:Coolnp

Code Optimization in Compiler Design
Reduction In Strength Explained Reduction in Strength:- Some operators have different strenght i.e use different space in the memory.So,this optimization basically change the operators or we can say that modify the operations so that, there will be no effect on the result in loop. '''For ex- Strength of *(Multiply) is "Higher" than +(Add).

So,in this type of optimization Higher Strength Operators are replaced by Lower Strength Operators.'''

=>Another Example<=
Given that

Length(S1 || S2)

where S1 and S2 have some values.

So If we apply the rule then

Length(S1 || S2) ---(Replaced By)--> [Length(S1) + Length(S2)]

As + operation is cheaper than the ||.

and it was Cleared by the above example that there will no change in Result.