Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: List of (open source) C compilers
13 points by fm77 on April 12, 2023 | hide | past | favorite | 6 comments
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.



https://en.m.wikipedia.org/wiki/List_of_compilers

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


Project name: Vacietis

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

Programming language used for the compiler: Common Lisp

Compiles to: Common Lisp


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


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/


chibicc: A Small C Compiler

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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: