c4wa: A Minimalist and Efficient C to WebAssembly Compiler

2025-06-28
c4wa: A Minimalist and Efficient C to WebAssembly Compiler

c4wa is a compiler that translates a subset of C into WebAssembly. Unlike other compilers, it generates minimalistic and well-optimized WebAssembly code without any glue, embedded libraries, or overhead. It's fully compatible with any WASM runtime out of the box. c4wa supports loops, conditionals, structs, arrays, pointers, and other typical C features, and can output readable WAT format code. It strikes a balance between the higher-level convenience of C and the low-level efficiency of WebAssembly, offering developers a new way to write performant WebAssembly code.

Development