~/talk

How an Optimizing Compiler Works

slides:none on file

An optimizer is implemented as an 11 MB tool that reads Java class files with ObjectWeb ASM bytecode->dataflow graph conversion, runs interprocedural and recursive type inference using a lattice with a bottom sentinel, then applies inlining, constant folding, dead code elimination and late scheduling to emit optimized class files. The demo reproduces the hand optimizations on a sample program, it works but has no benchmarks and is not production ready, and closed world analysis promises up to 2–10x speedups.

AI-written summary · about

  1. 0:00Start
  2. 2:17Manual Optimizations: Baseline
  3. 2:53Manual Optimizations: Type Inference
  4. 3:11Manual Optimizations. Constant Folding
  5. 3:34Manual Optimizations: Dead Code Elimination
  6. 3:53Manual Optimizations: Partial Evaluation
  7. 4:23Manual Optimizations: Late Scheduling
  8. 4:50Manual Optimizations: Final
  9. 8:20Sourcecode
  10. 9:16Abstract Syntax Trees
  11. 13:53Dataflow Graphs
  12. 15:32Type Inference & Constant Folding
  13. 16:24Type Lattices
  14. 17:31Inferring Values on the Dataflow Graph
  15. 24:05Recursive Inter-Procedural Inference
  16. 29:05Liveness & Reachability Analysis
  17. 29:28Strawman Program
  18. 30:54Liveness Optimizations
  19. 31:34Final Output Code
  20. 32:00How an Optimizing Compiler Works
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.