What are the advantages that can be taken in the case of strength reduction in FORTRAN?

What are the advantages that can be taken in the case of strength reduction in FORTRAN?



- The program that is used provides machine dependency and it is very technical on the part of coding.

- Registering the operations that are being used in the programs provides faster way than the memory operations being used.

- Compiler at the compile time put the register data and uses the data variables at very high rate.

- It also includes the temporary variables and the array indexes that are used to make the program stronger.

- The program tries to eliminate the common sub-expressions that take more time in computing. It is like this:

X = A * LOG(Y) + (LOG(Y) ** 2)

By using a temporary expression:

t = LOG(Y)
X = A * t + (t ** 2)

This is the function call that eliminates the common sub expression by LOG (Y) that saves it like:

X = (A + t) * t
Post your comment