HACKER Q&A
📣 fm77

List of (open source) C compilers


Over the years I found quite some interesting C compiler projects here on HN, sometimes introduced as its on thread, sometimes buried as a simple link deep down in some comments. Here and there I bookmarked them, but certainly not all.

It would be cool if we had one single page where all the wonderful compiler projects are collected, so my question is: can we somehow compile/assemble/put together a list of C compilers in this thread in the form of

  *) Name of the project
  *) Link to homepage/sourcecode
  *) programming language used for the compiler
  *) compiles to … (x86 binary, asm-text, etc…)
  *) whatever else might be interesting 
Tiny compilers / unfinished projects / educational projects / subsets of C / etc… are also very welcome.


  👤 rurban Accepted Answer ✓
https://en.m.wikipedia.org/wiki/List_of_compilers

gcc Clang Chibicc Pcc Tinycc (tcc) Lcc Cproc Amsterdam Compiler Toolkit Compcert Ch ...


👤 tmtvl
Project name: Vacietis

URL: https://github.com/vsedach/Vacietis

Programming language used for the compiler: Common Lisp

Compiles to: Common Lisp


👤 eimrine
Clang, TCC (sorry for not giving details because I have not really used them). Closed source compilers I know are VS and Borland.

👤 fm77
cproc: a C11 compiler

  *) https://github.com/michaelforney/cproc
  *) programming language used for the compiler: C
  *) using QBE as a backend - https://c9x.me/compile/

👤 fm77
chibicc: A Small C Compiler

  *) https://github.com/rui314/chibicc
  *) programming language used for the compiler: C
  *) emits assembly text (x86-64)

👤 simonblack
Most of us have just used gcc since the mid-90s.

Laziness, I know. But it's there on the machine, so we use it.