The following is a list of open source compilers that can generate C (or in some cases, C++) code.
Project name/link | Language(s) supported | Notes |
---|---|---|
BaCon (Basic Converter) | Basic | |
bc9Basic | Basic | Windows-only. |
Chapel | Chapel | |
CHICKEN Scheme | Scheme (R5RS) | |
Critical Mass Modula-3 | Modula-3 | |
Embeddable Common-Lisp | ANSI Common Lisp | |
f2c | Fortran 77 | |
Felix | Felix | Targets C++, not C. |
Gambit | Scheme (R5RS) | |
Genie | Genie | |
GHC | Haskell | C backend documentation page. |
GnuCOBOL | COBOL 2014 with extensions | |
Haxe | Haxe | Targets C++, not C. |
Mercury | Mercury | |
MLton | Standard ML | |
Nim | Nim | Can generate C, C++ or Objective C code. |
ooc | ooc | |
p2c | Several Pascal dialects, including UCSD and Turbo Pascal; Modula-2. | Can generate C or C++ code. |
perlcc | Perl5 | |
Sather | Sather | |
Seed7 | Seed7 | |
Vala | Vala |
Your contributions are welcome! Please submit a pull request or create an issue to add a new compiler to the list.