Micro C, Part 0: Introduction
In this series, we will explore how to write a compiler for a small subset of C to LLVM in Haskell. Our language, Micro C, is basically a small subset of real C. We'll have basic numeric types, a real
bool
type, pointers, and structs. At the end of the series, we'll have a beautiful executable,mcc
(Micro C Compiler), that takes one.mc
source file and produces an executable.
Source: Micro C, Part 0: Introduction, an article by Joseph Morag.