Unit 9: Code Optimization
Simply compiling and executing a program is not enough to get the most out of your code. It is the optimization process that allows your code to run as effectively and efficiently as possible. In this unit, we will first take a look at optimization, learning what it is and why we are interested in it. Next, we will review different optimization categories, including Peephole, Local, Loop, Language Dependent, and Machine Dependent. We will conclude with a discussion of different optimization techniques. By the end of this unit, you will have a basic understanding of a wide range of optimization techniques and how they improve the effectiveness of your program.
Completing this unit should take you approximately 22 hours.
9.1: The What and Why of Code Optimizations
9.2: Fundamentals of Code Optimization
9.3: Local Intermediate Code Optimizations: Definitions and Examples
9.4: Global Intermediate Code Optimizations: Definitions and Examples
9.5: Code Optimization
9.6: Verification and Validation of Code Optimization