IMPLEMENTATION OF SIMPLE CODE OPTIMIZATION TECHNIQUES
To write a C program to implement simple code optimization techniques such as Common subexpression elimination and Dead Code elimination.
- Start the program.
- The ‘L’values and their corresponding ‘R’ values are given as input.
- After common subexpression elimination, the subexpressions that are common are identified and are removed.
- After Dead code elimination, the subexpression that is of no use can be identified and is eliminated.
- Stop the program.
The simple code optimization techniques such as common subexpression elimination and dead code elimination are implemented successfully and the output is verified.