write-a-C-interpreter

Self-running C compiler

A simple C interpreter that can interpret and run itself

Write a simple interpreter of C. Inspired by c4 and largely based on it.

GitHub

4k stars
153 watching
745 forks
Language: C
last commit: 8 months ago
Linked from 2 awesome lists


Backlinks from these awesome lists:

Related projects:

Repository Description Stars
rui314/chibicc An open-source C compiler that aims to implement all C11 features and compile real-world programs correctly. 9,726
doctorwkt/acwj Writing a compiler for a simplified version of the C programming language from scratch. 10,578
tboox/tbox A comprehensive C library providing a wide range of functionality for various applications, including networking, concurrency, data storage and manipulation. 4,880
lotabout/let-s-build-a-compiler An educational compiler project implementing a simple C compiler with x86 assembly code generation 483
rui314/8cc An experimental compiler written in C for the x86-64 Linux architecture. 6,157
c3lang/c3c A compiler for an evolution of the C language 2,971
jamesroutley/write-a-hash-table Implementing an open-addressed, double-hashed hash table in C 3,491
checkedc/checkedc An extension to C that adds bounds checking and type safety to existing C code. 3,221
rui314/9cc A compiler project that compiles C code to x86-64 assembly using an intermediate representation and manual memory management. 1,825
thealgorithms/c A collection of algorithms implemented in C for educational purposes 19,308
orangeduck/mpc A lightweight and powerful library for building parsers of varying complexity using parser combinators. 2,689
jart/cosmopolitan A build-once run-anywhere C library that reconfigures stock compilers to output a POSIX-approved format for native execution on multiple platforms. 18,408
fragglet/c-algorithms A collection of commonly used algorithms in C. 3,350
mortdeus/legacy-cc Represents the earliest versions of a C compiler from the 1970s, no longer compilable with modern compilers. 3,776
jserv/amacc A compiler for the Arm architecture that compiles a subset of C to generate executables and supports just-in-time execution. 1,015