c11 - CS421 COMPILERS AND INTERPRETERS CS421 More on...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS421 COMPILERS AND INTERPRETERS Copyright 1994 - 2010 Zhong Shao, Yale University More on Machine-Code Generation: Page 1 of 7 More on Machine-Code Generation Problem : given a target machine specification, how to translate the intermediate representations into efficient machine code ? Solution --- must take consideration of the machine architecture 1. Code Selection (emitting the machine code via maximal-munch or dynamic programming ) 2. Register Allocation (global register allocation, spilling) 3. Instruction Scheduling (instruction scheduling, branch prediction, memory hierarchy optimizations) Language Trends : assembly -> C -> . .. -> higher-level languages ? Architecture Trends : CISC -> RISC -> . .. -> superscalar -> ? Trends : the bridging gap is the main challenge to compiler writers CS421 COMPILERS AND INTERPRETERS Copyright 1994 - 2010 Zhong Shao, Yale University More on Machine-Code Generation: Page 2 of 7 Register Allocation •R e g i s t e r a
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

c11 - CS421 COMPILERS AND INTERPRETERS CS421 More on...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online