News for hackers. Stuff that matters.

Ask HN: 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.
( 6 comments | 2 points | on HN )
Re:Ask HN: List of (open source) C compilers by tmtvl on Tuesday April 11, 2023 @09:12PM (#35533838)
Project name: Vacietis

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

Programming language used for the compiler: Common Lisp

Compiles to: Common Lisp

Re:Ask HN: List of (open source) C compilers by simonblack on Tuesday April 11, 2023 @10:23PM (#35534321)
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.

Re:Ask HN: List of (open source) C compilers by eimrine on Tuesday April 11, 2023 @11:05PM (#35534535)
Clang, TCC (sorry for not giving details because I have not really used them). Closed source compilers I know are VS and Borland.
Re:Ask HN: List of (open source) C compilers by rurban on Wednesday April 12, 2023 @01:06AM (#35535239)
https://en.m.wikipedia.org/wiki/List_of_compilers

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

Re:Ask HN: List of (open source) C compilers by fm77 on Wednesday April 12, 2023 @04:27AM (#35536569)
chibicc: A Small C Compiler

  *) https://github.com/rui314/chibicc
  *) programming language used for the compiler: C
  *) emits assembly text (x86-64)
Re:Ask HN: List of (open source) C compilers by fm77 on Wednesday April 12, 2023 @04:36AM (#35536628)
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/