Get the latest tech news

c4wa – C compiler for Web Assembly


A simplified subset of C transpiled into Web Assembly - kign/c4wa

It creates minimalistic well-optimized Web Assembly output without any "glue" to make it work with your application, without any embedded libraries, or any other overhead. If you can read Web Assembly instructions, you can see how this corresponds to the original C code, and it would seem reasonably close to how one might solve this problem directly in WAT. To try it, simply run./init.bash from that directory (it'll check prerequisites, install required npm modules, compile the source and load in browser); To cleanup, use./init.bash clean.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of C Compiler

C Compiler

Photo of Web Assembly

Web Assembly

Related news:

News photo

Rust to C compiler – 95.9% test pass rate, odd platforms

News photo

The earliest versions of the first C compiler known to exist

News photo

Why GCC 1.42 on the Tektronix 4404 – with a C compiler from 1979