Quiz 2
Registry Synced

BSCS4032 — Compiler Design

212 words
1 min read

Reading compass

Now · 📖 Course Overview

BSCS4032 — Compiler Design

IIT Madras BS Degree | Degree Elective | 4 Credits | 12 weeks

📖 Course Overview

Compiler Design covers the translation of high-level languages to machine code: lexical analysis (regex→NFA→DFA), syntax analysis (CFG, LL/LR parsing), semantic analysis, intermediate code generation, optimization, and code generation. The course uses Flex and Bison for scanner/parser generation.

📚 Week-by-Week Topics

WeekTopicsFiles
1Introduction, Compiler Structure, Phases OverviewCompiler Overview
2Lexical Analysis: Tokens, Regex, NFA→DFA, FlexLexical Analysis
3Syntax Analysis: CFG, Derivations, Recursive Descent, LL(1)Syntax Analysis I
4LR Parsing: LR(0), SLR(1), LR(1), LALR(1), BisonLR Parsing
5Semantic Analysis, Attribute Grammars, Type CheckingSemantic Analysis
6Symbol Table, Memory OrganizationSymbol Table
7Intermediate Code Generation: IR, TAC, ExpressionsIntermediate Code
8Control Flow Translation, BackpatchingControl Flow
9Basic Optimization: CSE, Copy Propagation, Dead CodeOptimization
10Global Optimization: Data Flow Analysis, LivenessData Flow Analysis
11Code Generation: Register Allocation, Instruction SelectionCode Generation
12Advanced: Garbage Collection, JIT, LLVMAdvanced Topics

🎯 Key Exam Topics

TopicWeightPriority
Lexical Analysis (regex→NFA→DFA)High⭐⭐⭐
LL(1) Parsing (FIRST/FOLLOW)High⭐⭐⭐
LR Parsing (items, tables)High⭐⭐⭐
Semantic Analysis (S-attributed, L-attributed)Medium⭐⭐
Intermediate Code (TAC)Medium⭐⭐
Data Flow AnalysisMedium⭐⭐
Code Generation (register allocation)Medium⭐⭐

🔗 Cross-References

  • BSCS3021 (ToC): Regular languages, CFG, automata theory
  • BSCS3005 (C Programming): Target code generation
  • BSCS4022 (OS): Memory organization, runtime Join Discord PreviousCode Optimization
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.