Overview of Compilers

Goals

Compiler Structure

Control Flow Graph

image.png

How Optimizations Improve Performance

$$ \text{Execution time = Number of Instruction Cycles * CPI * Time/Cycle} $$

Basic (Machine-Independent) Optimizations