You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kripken edited this page Dec 17, 2011
·
84 revisions
Emscripten Tutorial
Emscripten is an open source LLVM to JavaScript compiler. With it, you can compile C and C++ code into JavaScript and run it on the web. And it's easy!
Requirements
To use Emscripten and complete this tutorial, you need a few things:
The Emscripten code, from github
LLVM with Clang
Node.js
Python
...
Next Steps
After completing this tutorial, you can do more sophisticated things with Emscripten. For that, it is recommended to also get
The Closure Compiler. Emscripten generates code that is designed to be processed correctly in Closure Compiler's advanced mode, which can both minify and optimize for speed in significant ways. The Closure Compiler is run automatically by emcc in -O2 and above.
The SpiderMonkey shell. Almost, but not all of the tests in Emscripten's test suite can run using Node.js. It's also a good idea to test using more than one engine anyhow.