References :

https://www.chromium.org/chromium-os/developer-library/reference/linux-constants/syscalls/


If our goal is to build Apex, our own programming language in Rust, then we need to learn several layers. Think of it as building a city:

Language Design
      ↓
Lexer
      ↓
Parser
      ↓
AST
      ↓
Semantic Analysis
      ↓
Intermediate Representation (IR)
      ↓
Optimization
      ↓
Code Generation
      ↓
Machine Code
      ↓
CPU Execution

Part 1: The Complete Compiler Roadmap

Stage 0: Rust Fundamentals

Rust Fundamentals for Compilers

Before compiler theory, you need enough Rust to build large systems.

Important topics:

Ownership & Borrowing

Because compiler data structures are huge trees.

let x = String::from("Hello");
let y = &x;

You must understand: