Introduction to Compiler Construction in a Java World

Introduction to Compiler Construction in a Java World

Published: January 7, 2026

Duration: 17:50

A hands-on introduction to compiler construction, emphasizing Java technology and software engineering principles. It guides readers through the process of building and extending a real, functional Java compiler for a Java subset called "j--". The material covers fundamental compiler phases, including lexical analysis (scanning), parsing (syntax-directed recursive descent using JavaCC), semantic analysis (type checking and symbol tables), and code generation for both the Java Virtual Machine (JVM) and MIPS architecture (using the SPIM simulator). Furthermore, the text explores optimization techniques for generated code, discusses prominent compilers from Oracle, IBM, and Microsoft, and provides practical exercises and Java code to...