4 ms·
Emscripten can already compile to both asm.js and WebAssembly, with just flipping a switch between them. All the JS library support code is unchanged, so Emscr
by azakai 11y ago
Emscripten can already compile to both asm.js and WebAssembly, with just flipping a switch between them.
All the JS library support code is unchanged, so Emscripten's OpenGL to WebGL layer is used just like before, and the same for all the other libraries.
The WebAssembly backend in LLVM will eventually be used by Emscripten as another way to emit WebAssembly (right now it translates asm.js to WebAssembly), but the new backend is not ready yet.
See also https://github.com/kripken/emscripten/wiki/WebAssembly https://github.com/kripken/emscripten/wiki/WebAssembly