ExitPrep

Home / Exit exam / Compiler Design

Compiler Design: exit exam notes

Lexical analysis, parsing, code generation, and optimization. Written for the exam in 6 chapters, about 30 minutes of reading in total, plus 512 practice questions to drill. Chapter 1 is below in full and free for everyone. The other chapters open with Premium.

Part of the Computer Science & Engineering exit exam prep.

Chapters

  1. Introduction to Compiler Design Free (4 min)
  2. Lexical Analysis Premium (5 min)
  3. Bottom-up Parsing [LR(k)-Parsing] Premium (5 min)
  4. Syntax Directed Analysis Premium (6 min)
  5. Intermediate Code Generation Premium (5 min)
  6. Introduction to Code Optimization & Generation Premium (5 min)

Chapter 1: Introduction to Compiler Design

1.1 Introduction and Motivation

1.2 Classification of Compilers

Historically, compilers were split into smaller programs that made "passes" over the source code because early computers lacked the memory to hold a massive, unified compiler program.

1.3 Cousins of Compilers

1.4 Basic Compiler Architecture

Compilers are massive programs, so they are built using modular design (decomposition).

The Analysis-Synthesis Model:

1.5 Phases of a Compiler

Compilation is divided into six distinct sequential phases:

1.6 Compiler Construction Tools

Modern software tools exist to automatically generate phases of a compiler, making the process much easier.

5 more chapters in this course: Lexical Analysis; Bottom-up Parsing [LR(k)-Parsing]; Syntax Directed Analysis; Intermediate Code Generation; Introduction to Code Optimization & Generation. They are part of Premium, from 200 ETB for 3 months, together with every past paper and unlimited practice.

Study Compiler Design in the app

Read on your phone or laptop, drill the practice questions for this course and track what you got wrong. Free to start.

Start studying free Log in

All Computer Science & Engineering courses, papers and practice