Skip to main content

Tag

Programming

17 articles filed under Programming, newest first.

All topics All articles

Articles tagged Programming

Illustrated compiler pipeline showing source code passing through analysis and code-generation stages before becoming machine code.

Chapter 7 · Programming

How to Build a Compiler Backend in C++: x86-64 Generation

Build a compiler backend in C++ that translates checked IR into x86-64 NASM assembly with stack frames, arithmetic operations and native Linux executables.

36 min Intermediate

Illustrated compiler pipeline showing source code passing through analysis and code-generation stages before becoming machine code.

Chapter 6 · Programming

How to Build a Compiler IR in C++: Three-Address Code

Build an intermediate representation in C++. Lower a checked AST into three-address-style instructions with temporaries, variables, basic blocks, branches, loops and function calls.

38 min Intermediate

Illustrated compiler pipeline showing source code passing through analysis and code-generation stages before becoming machine code.

Chapter 2 · Programming

How to Design a Programming Language from Scratch

Design a small statically typed C-style programming language from scratch, including its syntax, types and grammar, then build its compiler in C++ with CMake and Docker.

7 min Intermediate

Illustrated compiler pipeline showing source code passing through analysis and code-generation stages before becoming machine code.

Chapter 1 · Programming

How a Compiler Works: From Source Code to Machine Code

Learn how a compiler transforms source code into machine code through lexing, parsing, semantic analysis, IR, optimisation and x86-64 code generation.

18 min Intermediate

Compiler project written in C++ that translates the Si programming language into native x86-64 executables

Programming

Build a Compiler From Scratch in C++ for x86-64

A step-by-step compiler tutorial in C++: design a language, build a lexer and parser, add semantic analysis, and generate native Linux x86-64 programs.

4 min Intermediate