What is JIT and how is works ?
Answers were Sorted based on User's Feedback
Answer / mahua dutta
JIT is the just in time compiler,it is quite different with
other compilers.It compiles the source code just in
time,and it does not compiles hole code ,only the code is
to be executed is compiled.there are three tipes of JIT.
pre jit,econo jit,normal jit.
Is This Answer Correct ? | 51 Yes | 12 No |
Answer / guest
Before Microsoft intermediate language (MSIL) can be
executed, it must be converted by a .NET Framework
just-in-time (JIT) compiler to native code, which is
CPU-specific code that runs on the same computer
architecture as the JIT compiler.
Rather than using time and memory to convert all the MSIL in
a portable executable (PE) file to native code, it converts
the MSIL as it is needed during execution and stores the
resulting native code so that it is accessible for
subsequent calls.
The runtime supplies another mode of compilation called
install-time code generation. The install-time code
generation mode converts MSIL to native code just as the
regular JIT compiler does, but it converts larger units of
code at a time, storing the resulting native code for use
when the assembly is subsequently loaded and executed.
As part of compiling MSIL to native code, code must pass a
verification process unless an administrator has established
a security policy that allows code to bypass verification.
Verification examines MSIL and metadata to find out whether
the code can be determined to be type safe, which means that
it is known to access only the memory locations it is
authorized to access.
Is This Answer Correct ? | 43 Yes | 10 No |
Answer / ambikumar
When compiling the source code to managed code, the
compiler translates the source into Microsoft intermediate
language
(MSIL). This is a CPU-independent set of instructions that
can efficiently be converted to native code. Microsoft
intermediate language (MSIL) is a translation used as the
output of a number of compilers. It is the input to a just-
in-time
(JIT) compiler. The Common Language Runtime includes a JIT
compiler for the conversion of MSIL to native code.
Before Microsoft Intermediate Language (MSIL) can be
executed it, must be converted by the .NET Framework just-
in-time (JIT)
compiler to native code. This is CPU-specific code that
runs on the same computer architecture as the JIT compiler.
Rather
than using time and memory to convert all of the MSIL in a
portable executable (PE) file to native code. It converts
the MSIL
as needed whilst executing, then caches the resulting
native code so its accessible for any subsequent calls
JIT
----
The Just-In-Time (JIT or JITter) compiler, converts the MSIL
(Microsoft Intermediate Language) code into the native code
(CPU
Specific code).
The .NET runtime/Common Language Runtime (CLR) ships three
different classes of JITters.
<li><b>Econo-JIT</b>: This compiler converts the MSIL code
into native code without any optimizations.
<li><b>Standard-JIT</b>: This compiler takes the MSIL code
and optimizes it. So this compiler requires lot of
resources like,
time to compile, larger memory footprint, etc.
<li><b>PreJIT</b>: This is based on the Main JIT and it
works like the traditional compilers rather than Just-In-
Time
compilers. This compiler is used at the time of
installation.
JIT does not compiles hole code ,only the code is to be
executed is compiled
Is This Answer Correct ? | 25 Yes | 6 No |
Answer / tapan kumar
Microsoft intermediate language (MSIL) can be executed, it
must be converted by a .NET Framework just-in-time (JIT)
compiler to native code.
Is This Answer Correct ? | 10 Yes | 7 No |
Answer / anil
JIT compiler (Just In Time Compiler) is the main part in the
CLR, which converts the MSIL code into the native code. It
compiles the program quickly in an efficient manner.
Is This Answer Correct ? | 15 Yes | 14 No |
Answer / vinod kumar kushawaha
What are different types of JIT?
Ans-
JIT compiler is a part of the runtime execution environment.
In Microsoft .NET there are three types of JIT compilers.
Pre-JIT : Pre-JIT compiles complete source code into native
code in a single compilation cycle. This is done at the time
of deployment .
Is This Answer Correct ? | 6 Yes | 5 No |
Answer / prashant yadav
jit is a just in time compiler,it converts msil code into
native code..it is different other compilers bcoz it compile
source code just in time and does not compile hole code at a
time...
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / manjunatha s
jit is a just in time compiler,it converts msil code into
native code..it is different other compilers bcoz it compile
source code just in time and does not compile hole code at a
time...
Verification examines MSIL and metadata to find out whether
the code can be determined to be type safe, which means that
it is known to access only the memory locations it is
authorized to access.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / girish
jit is just in time compiler...
it work during the CLR execution...
jit will not execute all the code it will compile partial code means which code to be executed at tat time
Is This Answer Correct ? | 4 Yes | 8 No |
Answer / vinod kumar kushawaha
JIT compiler is a part of the runtime execution environment.
In Microsoft .NET there are three types of JIT compilers.
Pre-JIT : Pre-JIT compiles complete source code into native
code in a single compilation cycle. This is done at the time
of deployment of the application.
Econo-JIT : Econo-JIT compiles only those methods that are
called at runtime. However, these compiled methods are
removed when they are not required.
Normal-JIT : Normal-JIT compiles only those methods thar are
called at runti
Is This Answer Correct ? | 5 Yes | 9 No |
what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?
What are delegates?where are they used
How to change the action name in ASP.Net MVC?
How large is the .net framework 3.0?
unit test done by tetser on development team?
Can you explain the page life cycle of mvc?
What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables
what happened when type url in address bar and press enter?
explain what is ado.net entity framework?
Explain representational state transfer (rest) in detail?
What are the contents of assembly?
what is deferred loading(lazy loading)?