A work in progress C compiler from scratch

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. ocean

    Programming language that compiles into a x86 ELF executable.

    Can't edit my original reply anymore, but fair point, I've changed the keyword 'function' in the AST to a function return type instead. There's no error handling done yet to check whether the variable receiving the function return data matches the function return type, but it's on my todo list.

    https://github.com/riicchhaarrd/ocean/commit/0618e0810c8d437...

    Then again in C it would work aswell if you type casted the types.

      const char *f()

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. flex

    The Fast Lexical Analyzer - scanner generator for lexing in C and C++ (by westes)

    I wrote a C compiler using flex [1] and bison [2]. The glue between them is a bit hacky.

    At some point ANTLR [3] looked promising, but these days I'd probably write a lexer and recursive descent parser by hand, then generate LLVM IR.

    [1] https://github.com/westes/flex

  4. llvm-project

    The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

  5. imp

    Imp is a statically typed and compiled scripting language with the goal of increasing programmer confidence.

    I've had good luck with ANTLR4 and ObjWeb ASM for my JVM language Imp https://github.com/mh15/imp

  6. Cwerg

    The best C-like language that can be implemented in 10kLOC.

  7. SaaSHub

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

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

Did you know that C++ is
the 7th most popular programming language
based on number of references?