COMPILER CONSTRUCTION Principles and practice Kenneth C. louden
COMPILER CONSTRUCTION Principles and Practice Kenneth C. Louden
8. Code Generation
8. Code Generation
Contents Part One 8. 1 Intermediate Code and Data Structure for code Generation 8.2 Basic Code Generation Techniques Part Two 8.3 Code generation of data Structure Reference 8.4 Code generation of Control Statements and logical Expression 8.5 Code generation of procedure and function calls Part Three 8.6 Code Generation on Commercial Compilers: Two Case studies 8.7TM: A Simple Target Machine 8.8 A Code Generator for the TINY Language 8.9A Survey of Code optimization Techniques 8.10 Simple Optimizations for tINY Code Generator
Contents Part One 8.1 Intermediate Code and Data Structure for code Generation 8.2 Basic Code Generation Techniques Part Two 8.3 Code Generation of Data Structure Reference 8.4 Code Generation of Control Statements and Logical Expression 8.5 Code Generation of Procedure and Function calls Part Three 8.6 Code Generation on Commercial Compilers: Two Case Studies 8.7 TM: A Simple Target Machine 8.8 A Code Generator for the TINY Language 8.9 A Survey of Code Optimization Techniques 8.10 Simple Optimizations for TINY Code Generator
8. 6 Code generation in commercial Compilers: Two Case Studies Borlands c compiler for 80X86 Suns c compiler for sparc Stations
8.6 Code Generation in Commercial Compilers: Two Case Studies Borland’s C Compiler for 80X86 Sun’s C Compiler for SparcStations
For example, onsider the c procedure Void f( int char c) i int a[10; double y;
For example, Consider the C procedure Void f ( int x, char c) { int a[10]; double y; … }