Writing your first compiler
A practical guide to building a minimal compiler using modern tooling. The tutorial demonstrates creating a simple expression compiler that generates x86_64 object files using Go, LLVM's C API, and Bazel as the build system. The compiler handles basic arithmetic expressions with symbols, using the Participle library for parsing and LLVM for code generation. The project emphasizes reproducibility through Bazel, which automatically fetches dependencies including LLVM itself, requiring minimal system setup beyond a C/C++ compiler.