Settings

Theme

cjsawk: A Self-Hosted Compiler for a Subset of C, JavaScript, and Awk

youtube.com

2 points by dithered_djinn 3 months ago · 1 comment

Reader

dithered_djinnOP 3 months ago

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...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection