Re:Partial WebAssembly backend for the GNU toolchain
by felipellrocha on Saturday March 04, 2017 @05:14PM
(#13793179)
How is this different than using the emsdk to build?
[ Parent
| on HN ]
Re:Partial WebAssembly backend for the GNU toolchain
by bobajeff on Saturday March 04, 2017 @05:27PM
(#13793241)
Emscripten is a cross-compiler tool chain. This is a back end for a compiler.
Currently Emscripten uses a fork of Clang/LLVM called fastcomp with a ASM.js backend.
This is a fork of GCC/Binutils with a WebAssembly and ASM.js backend.
Re:Partial WebAssembly backend for the GNU toolchain
by azakai on Saturday March 04, 2017 @08:07PM
(#13793989)
To add to that, in principle Emscripten could use gcc and this backend instead of clang and an LLVM backend. Emscripten itself abstracts over the backend details (it's supported 3 different backends in its history, and currently supports 2). Most of the code in Emscripten is in the libraries, like OpenGL=>WebGL, etc., and JS integration code, which shouldn't depend on the backend.
It would be interesting to get that working and do some code comparisons on the output.