C Compiler

Open-source C projects categorized as Compiler

Top 23 C Compiler Projects

  • acwj

    A Compiler Writing Journey

  • Project mention: Toy C compiler, worth having an IR stage? | /r/Compilers | 2023-07-01

    I wrote https://github.com/DoctorWkt/acwj. I'm working on a version with an IR so I can add some optimisations to it. I'd say, yes, have an IR :-)

  • emojicode

    😀😜🔂 World’s only programming language that’s bursting with emojis

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • mir

    A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR

  • Project mention: Ravi is a dialect of Lua, with JIT and AOT compilers | news.ycombinator.com | 2024-03-18

    MIR comes from the Rubyverse and isn't related to LLVM MLIR.

    https://github.com/vnmakarov/mir?tab=readme-ov-file#mir

  • tinycc

    Unofficial mirror of mob development branch

  • Project mention: Autoconf makes me think we stopped evolving too soon | news.ycombinator.com | 2024-04-03

    A better solution is just to write a plain ass shell script that tests if various C snippets compile.

    https://github.com/oilshell/oil/blob/master/configure

    https://github.com/oilshell/oil/blob/master/build/detect-pwe...

    Not an unholy mix of m4, shell, and C, all in the same file.

    ---

    These are the same style as a the configure scripts that Fabrice Bellard wrote for tcc and QEMU.

    They are plain ass shell scripts, because he actually understands the code he writes.

    https://github.com/qemu/qemu/blob/master/configure

    https://github.com/TinyCC/tinycc/blob/mob/configure

    OCaml’s configure script is also “normal”.

    You don’t have to copy and paste thousands of lines of GNU stuff that you don’t understand.

    (copy of lobste.rs comment)

  • ruby-packer

    Packing your Ruby application into a single executable.

  • SmallerC

    Simple C compiler

  • Project mention: Cwerg: C-like language that can be implemented in 10kLOC | news.ycombinator.com | 2024-03-21
  • c3c

    Compiler for the C3 language

  • Project mention: Odin Programming Language | news.ycombinator.com | 2024-01-01
  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • ring

    Simple and flexible programming language for applications development (by ring-lang)

  • shecc

    A self-hosting and educational C optimizing compiler

  • Project mention: A self-hosting and educational C optimizing compiler | news.ycombinator.com | 2024-01-07

    Yes, consider the case of shecc. It requires just a handful of C code lines to interpret directives set in the C preprocessor. Unlike relying on existing tools like cpp, as, or ld, shecc stands alone as a minimalist cross-compiler. This design could be particularly beneficial for students delving into the study of compiler construction. See https://github.com/sysprog21/shecc/blob/master/src/lexer.c#L...

  • amacc

    Small C Compiler generating ELF executable Arm architecture, supporting JIT execution

  • Project mention: Best practice to store context for a C compiler | /r/Compilers | 2023-06-20

    amacc

  • umka-lang

    Umka: a statically typed embeddable scripting language

  • Project mention: VDrift: Cross-Platform Driving Simulation | news.ycombinator.com | 2023-12-28
  • libfsm

    DFA regular expression library & friends

  • lacc

    A simple, self-hosting C compiler

  • Project mention: Lacc – A simple, self-hosting C compiler | news.ycombinator.com | 2024-02-14
  • bic

    A C interpreter and API explorer.

  • felix

    The Felix Programming Language (by felix-lang)

  • Project mention: Felix: Statically typed, performant scripting language with native C++ embedding | news.ycombinator.com | 2023-12-28
  • flang

    Flang is a Fortran language front-end designed for integration with LLVM.

  • Project mention: Supporting BFLOAT16 in ISO_Fortran_env: not recommended | news.ycombinator.com | 2024-03-15

    It is great to know that LLVM Flang supports BFLOAT16!

    I look forward to trying it in my project ( http://www.libprima.net ), although LLVM Flang is not ready to use last time I tried.

    As a side note, the Classic Flang ( https://github.com/flang-compiler/flang ) does not support kind = 3.

  • nature

    🍀 The Nature Programming Language, may you be able to experience the joy of programming.

  • Project mention: Nature: Programming language to experience the joy of programming | news.ycombinator.com | 2023-10-13

    The primary channel for communication right now is https://github.com/nature-lang/nature , where you can engage and keep up-to-date through issues, discussions, and watching the repository.

    Additionally, this is my first time hearing about the Mastodon platform, it looks really cool.

  • cproc

    C11 compiler (mirror)

  • Project mention: Oasis – a small, statically-linked Linux system | news.ycombinator.com | 2024-01-26

    Michaelforney has also built croc [1], a qbe based C compiler. Really impressive!

    [1]: https://github.com/michaelforney/cproc

  • wax

    A tiny programming language that transpiles to C, C++, Java, TypeScript, Python, C#, Swift, Lua and WebAssembly 🚀

  • Project mention: Wax compiler – a tiny language designed to transpile to other languages | news.ycombinator.com | 2024-04-19

    Here's a link to the language itself. Hasn't been updated in a couple years, unfortunately. Maybe getting some attention here could help.

    https://github.com/LingDong-/wax

  • w2c2

    Translates WebAssembly modules to portable C

  • Project mention: Build your own WebAssembly Compiler | news.ycombinator.com | 2023-12-03

    For AOT, the simplest approach, that actually produces the fastest native code, is to naively translate WASM opcodes to C.

    This is for example what W2C2 does: https://github.com/turbolent/w2c2

  • Gwion

    :musical_note: strongly-timed musical programming language

  • MazuCC

    A minimalist C compiler with x86_64 code generation

  • Cuik

    A Modern C11 compiler (STILL EARLY)

  • Project mention: Zig Roadmap 2024 [video] | news.ycombinator.com | 2024-01-27

    > but they surely can't hope to compete with LLVM in terms of opimisation, can they?

    This has been discussed more than once on Zig's discord server. Quoting Andrew and Matthew Lugg's discussion in #compiler-devel about pull 17892:

    > mlugg: Shout-out to the people on Twitter and HN who are probably still saying "why would you try to compete with LLVM, LLVM is perfect and can do no wrong"

    > andrewrk: worse, they're saying "LLVM is not great but it's the best mankind can achieve"

    I think it's very appealing to have a project that focuses on fast build times and wants to seriously compete against LLVM in terms of the optimization pass pipeline, specially when you don't have a beefy computer. With that said, for the time being there are no optimizations made by Zig's own x86 backend (it neither does pass all behavior tests like it was pointed out in the talk, but it can build the Zig compiler itself and some other projects).

    Cuik[1] is a project that was mentioned in the Q&A section which illustrates how a compiler can be fast and make optimised builds at the same time.

    [1] https://github.com/RealNeGate/Cuik

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C Compiler related posts

Index

What are some of the best open-source Compiler projects in C? This list will help you:

Project Stars
1 acwj 9,882
2 emojicode 3,201
3 mir 2,187
4 tinycc 1,817
5 ruby-packer 1,555
6 SmallerC 1,317
7 c3c 1,288
8 ring 1,235
9 shecc 1,038
10 amacc 997
11 umka-lang 968
12 libfsm 898
13 lacc 847
14 bic 800
15 felix 794
16 flang 779
17 nature 738
18 cproc 678
19 wax 670
20 w2c2 668
21 Gwion 517
22 MazuCC 509
23 Cuik 506

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com