CD Unit1 L1
CD Unit1 L1
§ Be efficient
Reality
Reality getting Worse
§ I don't have a compiler for this platform.
§ My program compiles with an older version of gcc.
§ My program compiles with the new version but does not run on this new
platform.
§ My program compiles with an older gcc if you disable optimizations.
§ My program compiles if you have llvm 5.4, clang 5.5, gcc 5.0.1 on
x86_64 with lonestar 1.2 or above on Ubuntu 16 or below.
Compiler Writing
§ is challenging.
§ A compiler is a large program.
§ A compiler must translate correctly potentially infinite set of programs
that could be written in the source language.
§ The problem of generating the optimal target code from a source
program is undecidable.
§ Heuristics and Trade-offs.
§ Compilers is an area where Theory meets Practice.