Рет қаралды 142,877
#codeoptimizationtechniquesincompilerdesign #codeoptimizationincompilerdesign #compilerdesign
code optimization in c
peephole optimization in compiler design
code optimization pdf
code generation in compiler design
code motion in compiler design
what is code optimization
loops in flow graph in compiler design
difference between local and global optimization in compiler design
In this video, we will discuss about the Code Optimization Techniques in Compiler Design.
What is Code Optimization ?
---------------------------------------------
Code Optimization is a technique which tries to improve the code by eliminating unnecessary code lines and arranging the statements in such a sequence that speed up the program execution without wasting the resources.
Various Code Optimization Techniques:
---------------------------------------------------------------
1. Compile Time Evaluation
a) Constant Folding
b) Constant Propagation
2. Common sub-expression elimination
3. Code Movement
4. Dead Code Elimination
5. Strength Reduction