Clang in JS

This is Clang running in JS, ported by emscripten.

input

console


        

output


        

Execute »

Limitations

C preprocessor is not hooked up.

If you want to also execute the code, use this LLVM IR runner or one of the many CPU emulators out there in JS.

This is a quick hack, build size and perf have not been optimized yet.

Fork me on GitHub