Rethinking Code Generation
Rethinking Code Generation
Generation in
Compilers
Christian Schulte
KTH & SICS
Compilation
source back-end assembly
3
Building a Compiler
source back-end assembly
5
State-of-the-art
register
x register r0
6
State-of-the-art
instruction
x = y + z; u = v w;
7
State-of-the-art
instruction register instruction
8
State-of-the-art
instruction instruction register
9
State-of-the-art
instruction instruction register
processor description
18
Status
Processor: simple RISC architecture (MIPS 32 bit)
compared to LLVM (state-of-the-art)
19
Future
Complete model for instruction selection
yields complete constraint-based model
Funding
LM Ericsson AB SICS 2010 2013 21
Swedish Research Council (VR) KTH 2012 2014