News for hackers. Stuff that matters.
Re:cjsawk: A Self-Hosted Compiler for a Subset of C, JavaScr... by dithered_djinn on Tuesday November 11, 2025 @07:34PM (#45894889)
This talk describes the implementation of a self hosted C compiler that is implemented in a dialect of C that is simultaneously valid C, JavaScript, and AWK. This allows us to ship a C compiler in source form that can be built on many different platforms.

cjsawk itself is also capable of building a C99 compiler. In turn this allows us to bootstrap from source all the way up to GCC.

Web demo: https://cosinusoidally.github.io/tcc_simple/experiments/cjsa...

Project github repo: https://github.com/cosinusoidally/tcc_simple/tree/master/exp...

Slides: https://online.accuconference.org/wp-content/uploads/2025/10...

There are no comments on this comment yet.