3 ms·
That's LLVM -> JS. Has anyone built Clang using emscripten (that would be the C -> LLVM piece)?
by niggler 14y ago
That's LLVM -> JS. Has anyone built Clang using emscripten (that would be the C -> LLVM piece)?
- arcatek 14y agoThe C++ LLVM library is hard to compile to js. Didn't succeed last time[1]. [1] https://github.com/kripken/emscripten/issues/579 https://github.com/kripken/emscripten/issues/579
- azakai 14y agoI've built parts of LLVM itself, http://kripken.github.com/llvm.js/demo.html http://kripken.github.com/llvm.js/demo.html Which translates LLVM IR into LLVM bitcode, and then emscripten can translate to JS, all in the browser. No reason clang couldn't be compiled too, I imagine someone someday will do it when there's a need.