Compiler Optimizations
Inline expansion
- Replaces calls to small run-time support functions with inline code, saving function call overhead
/* Expression Simplification*/
g = (a + b) - (c + d); /* unoptimized */
g = ((a + b) - c) - d; /* optimized */
- Expression simplification
- Compiler simplifies expressions to equivalent forms requiring fewer instructions/registers