2

The Emscripten github page states that "it takes LLVM bitcode - which can be generated from C/C++, using llvm-gcc (DragonEgg) or clang, or any other language that can be converted into LLVM - and compiles that into JavaScript."

A goal of the LLILC project is a "Just in Time (JIT) compiler for CoreCLR" based on LLVM.

How can I combine Emscripten with LLILC (or any other C#-to-LLVM compiler) to compile C# to JavaScript?

I've seen many references to this possibility since the emscripten project was created, but no clear explanations. This isn't the kind of thing one figures out in an hour or two, hence this question.

0

1 Answer 1

1

LLILC is still in very early development. You can instead use JSIL to use a fairly large part of C# in JavaScript.

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

3 Comments

I'm not clear on what you're trying to do. Which features of C# are you trying to use that JSIl doesn't support?
The original question is about using Emscripten, not JSIL. You suggest that it is possible to compile through Emscripten via JSIL, So am just asking how, as I can't find any information on doing this. JSIL by itself is not an answer to the original question.
I understand that your question is about using Emscripten, but on its own Emscripten can't do that. You mention LLILC, but it's too early to use reliably.

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.