1

I'd like to know if Emscripten is self-hosting in such a way, that it can compile LLVM to JavaScript?

6
  • By "LLVM", you mean the IR clang++ -emit-llvm spits out when compiling LLVM libraries? Commented Feb 8, 2012 at 14:06
  • No, by LLVM I mean the C++ code, that LLVM is written in. Commented Feb 8, 2012 at 14:23
  • Can't you simply try to compile it and see if it works? Commented Feb 8, 2012 at 15:23
  • Interesting thought. It might work (with some major rewrite, I assume) but even if, the resulting JS would probably be HUGE and slow. Commented Jun 17, 2012 at 23:47
  • Emscripten is written in JavaScript. Commented Aug 23, 2012 at 22:57

2 Answers 2

3

Yes, it can as of the end of 2012.

https://github.com/kripken/llvm.js

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for coming back to this question and answering :)
1

No, it cannot do that as of April 2013.

1 Comment

Thanks for coming back to this question and answering :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.