runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Add info about MSILC JIT to docs

Open akoeplinger opened this issue 11 years ago • 9 comments

In https://github.com/dotnet/coreclr/pull/249 the MSILC JIT was enabled, which from the comments in runtest.cmd is an "alternative JIT for testing".

I'm curious what this is, can we get a bit more info added to the docs?

akoeplinger avatar Feb 13 '15 01:02 akoeplinger

Yes, the CLR has functionality to allow for an “alternate jit” that can be loaded for method JITing while still falling back to the base JIT if needed. This is a useful tool for JIT testing and debugging as you can probably imagine. You’re right, it looks like we need additions to the docs here. The common ‘alt’ scenario is that the current RyuJIT is built as a dll that includes a developers changes and then is used as an alt jit for testing/binary search. Architecturally CoreCLR defines a JIT interface that allows different JITs to be plugged in so there have been different alternate JITs internally over the years. The “MSILC” you saw is just one of those, and which is next in the pipeline to come open - we're just resource constrained or it'd be out already.

Today if you set COMPlus_AltJit=*, and specify COMPlus_AltJitName=.dll, CoreCLR will load the dll as the alternate JIT and try to compile a method with it before falling back to the main JIT. More description is in the below link about enabling a RyuJIT CTP.

https://github.com/Microsoft/dotnet/tree/master/docs

Your issue is a good one – we’ll get somebody to add some basic docs initially and then start on some more overarching description.

russellhadley avatar Feb 13 '15 23:02 russellhadley

Great, I suspected something like that, thanks for the explanation!

akoeplinger avatar Feb 13 '15 23:02 akoeplinger

@akoeplinger Do you have a suggestion for what we should do? Should we make an entry in the wiki, start a new file in the Documentation direction? What would work best for you, as a user of the info?

richlander avatar Feb 15 '15 00:02 richlander

@richlander Hmm, I don't think it fits in the wiki, I'd prefer something in the Documentation folder.

akoeplinger avatar Feb 15 '15 00:02 akoeplinger

@akoeplinger OK, works. I'll talk to folks about that. I'm thinking a document that describes the alt-jit mechanism, it's intention and the instructions would be good. Sound, good?

@cmckinsey, @CarolEidt or @russellhadley can probably help with that. I assigned to @cmckinsey.

richlander avatar Feb 15 '15 04:02 richlander

Yep that sounds excellent!

akoeplinger avatar Feb 15 '15 11:02 akoeplinger

@akoeplinger actually the AltJit mechanism is easy to understand, what's interesting/unclear here is what MSILCJIT/LLILCJIT itself is. any progress ? @richlander

WalkingCat avatar Mar 18 '15 06:03 WalkingCat

alright, to answer my own question, MSILCJIT or LLILCJIT is an LLVM based JIT for .NET https://github.com/dotnet/llilc

WalkingCat avatar Apr 14 '15 00:04 WalkingCat

Last question answered with llilc link. Closing.

russellhadley avatar Jul 28 '16 17:07 russellhadley