bonsai-c is a compiler from C to WebAssembly


  • administrators

    bonsai-c is a tool for writing programs, not porting them. By building a C compiler from the ground up, rather than bolting a Javascript backend onto a mature C compiler, we can tailor it to the needs of Javascript programmers. You can use it to write a function for calculating fibonacci numbers, and you will get back an asm.js-compliant Javascript module with an obvious entry point, for calculating fibonacci numbers. You will not get a mountain of runtime code to implement file handling and malloc and a million other things you didn't ask for.

    GitHub: https://github.com/gasman/bonsai-c


 

A community for developers looking to put WebAssembly to use today. Come rock WebAssembly with us!