From 5e4f13ebc1f308f598513f7b995125c8bba0ce1b Mon Sep 17 00:00:00 2001 From: Bojun Ren Date: Fri, 16 Jan 2026 12:26:49 +0800 Subject: [PATCH] update SJTU compilers (English) --- docs/编译原理/SJTU-Compilers.en.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docs/编译原理/SJTU-Compilers.en.md b/docs/编译原理/SJTU-Compilers.en.md index 8ba2b71b..fc00ee6e 100644 --- a/docs/编译原理/SJTU-Compilers.en.md +++ b/docs/编译原理/SJTU-Compilers.en.md @@ -10,20 +10,21 @@ The Compiler Principles course at Shanghai Jiao Tong University aims to implement a compiler for the Tiger language. In this course, you will learn about lexical analysis, grammar analysis, semantic analysis, escape analysis, activation records (stack frames), LLVM IR, liveness analysis, register allocation, garbage collection, object-oriented programming, functional programming, and many other topics. Similar to the Compiler Principles course at Peking University, this course offers you a great deal of freedom. The test programs will only check the correctness of the assembly code you output and will not impose any restrictions on the specific design of your compiler. You will need to build your own compiler step by step from scratch. -In this course, you will learn how to use frameworks such as `flexc++`, `Bisonc++`, and `LLVM`, and enhance your debugging skills through practice. The theoretical part of the course is taught by teachers from the IPADS Laboratory at Shanghai Jiao Tong University. +In this course, you will learn how to use frameworks such as `Flex`, `Bison`, and `LLVM`, and enhance your debugging skills through practice. The theoretical part of the course is taught by teachers from the IPADS Laboratory at Shanghai Jiao Tong University. ## Course Resources -- Course Website: -- Slides: See the course website -- Framework Code: (If unable to access, you can use other similar and maintained repositories, such as ) +- Course Website: +- Slides: +- Framework Code: Not yet open-sourced. Old version: ; For the newest version, please contact to the TA. - Course Textbook: "Tiger Book" (Modern Compiler Implementation in C) -- 2 Quizzes + 6 Labs +- 2 Quizzes + 5 essential labs + 2 optional labs - Lab 1: Straight-line Program Interpreter - - Lab 2: Lexical Analysis - - Lab 3: Parsing + - Lab 2: Lexer + - Lab 3: Parser - Lab 4: Type Checking - Lab 5 - - Part 1: Escape Analysis and Translation - - Part 2: Tiger Compiler without Register Allocation - - Lab 6: Register Allocation \ No newline at end of file + - Part 1: Escape Analysis + - Part 2: Translate to LLVM + - (Optional) Lab 6: Code Generation + - (Optional) Lab 7: Register Allocation