Emscripten - Compiles C and C++ into JavaScript

admin

Administrator
Staff member
Anyone heard of Emscripten?

Emscripten is an LLVM-based project that compiles C and C++ into highly-optimizable JavaScript in asm.js format. This lets you run C and C++ on the web at near-native speed, without plugins.

Compile your existing projects written in C or C++ and run them on all modern browsers.

I have just found it on my lunch break at work, I'm I could have some fun with this. I found it whilst stumbling on: https://win95.ajf.me/
 

fouadChk

Member
DJB said:
Anyone heard of Emscripten?

Emscripten is an LLVM-based project that compiles C and C++ into highly-optimizable JavaScript in asm.js format. This lets you run C and C++ on the web at near-native speed, without plugins.

Compile your existing projects written in C or C++ and run them on all modern browsers.

I have just found it on my lunch break at work, I'm I could have some fun with this. I found it whilst stumbling on: https://win95.ajf.me/

Yep!.. I think 2 years ago when I started digging into WebGL.

Brendan Eick made few demos of C++ games that were ported (transcompiled with Emscripten) into JS (as asm.js) in 2 consecutive JSConf (2013 and 2014 if I recall.)

But the first official announcement I think was in this Mozilla Hacks blog post: Porting "Me & My Shadow" to the Web ? C++ to JavaScript/Canvas via Emscripten (April 4, 2012.)

What it does essentially is to open up the Web platform to all sort of games and other C/C++ popular libraries that can be trans-compiled as a subset of JavaScript called asm.js that modern browsers can compile and run much more efficiently than our standard JS code.