Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think I understand the question to be that you want to use LLVM IR in the same way that the GCC can compile Java using gcj?</p> <p>The LLVM had an option to output CIL directly from whatever front end you used (So in theory you could do C/C++ to CIL). The following command options:</p> <pre><code>llc -march=msil </code></pre> <p>would output CIL from (in theory) any supported LLVM Front-End.</p> <p>Going from C# or CIL to LLVM IR hasn't been done yet (or at least finished). You'd need a C# front-end.</p> <p><a href="http://vmkit.llvm.org/get_started.html" rel="nofollow noreferrer">VMKit</a> had some kind of C# front end scaffolding. Support was never feature complete and interest has since faded. They've moved to just supporting Java. You might try their source repository and see if there are any remnants of their early C# work can be reworked into a full C# frontend.</p> <p>Also note that you can write your own <em>C# to LLVM IR</em> compiler in C# (using <a href="http://en.wikipedia.org/wiki/Mono_%28software%29" rel="nofollow noreferrer">Mono</a> or whatever) and use <a href="http://en.wikipedia.org/wiki/Platform_Invocation_Services" rel="nofollow noreferrer">P/Invoke</a> to call into LLVM libraries and create LLVM IR. There are some good information out there such as <em><a href="http://gnuu.org/2009/09/18/writing-your-own-toy-compiler/" rel="nofollow noreferrer">Writing Your Own Toy Compiler Using Flex, Bison and LLVM</a></em>.</p> <p>This area is also getting interesting now that the compiler as a service (<a href="https://en.wikipedia.org/wiki/.NET_Compiler_Platform" rel="nofollow noreferrer">Roslyn</a>) project has had its first couple of CTP releases, and Mono has its Mono.CSharp project. Though I think Roslyn is a bit more feature-rich.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload