User loginNavigationTake FREE online C/C++ test now!Unix / Linux ProgrammingCode search made simpleYour feedback needed!As a webmaster of this site, I regard you as our most important critic and commentator. We value your opinion and want to know what we are doing right, what we could do better and any other words of wisdom you're willing to pass our way. It would be our greatest motivation which will help us in developing areas you would like to see in this site. We hope you will continue to encourage and support us in our future endeavors.
INDIA |
pradeep's blogCompiler Optimization Techniques PART -II6. Loop Invariant Code Motion Here, the part of code that remains unchanged by the iterations of its immediate loops, is moved out of the loop. Ex: . . . . return i; This can be simplified as follows :
Compiler Optimization Techniques PART -Icode optimization is a technique in which the code is transformed to improve the performance. Performance here can be execution time, code size or both. Now, let me start away with the common techniques used. Optimization Techniques - 1. Copy Propogation copy propagation is the process of replacing the occurrences of targets of direct assignments with their values ex : x = y; this can be optimized as follows : |