| What is JIT? |
|
|
|
| Written by Chetankumar Akarte | |
| Sunday, 27 May 2007 | |
What is JIT?JIT (just-in-time) is a CLR’s (Common Language Runtime) compiler. The JIT Compiler function is responsible for compiling a method’s IL code into native CPU instructions. Because the IL(intermediate language) is being compiled "just in time," this component of the CLR is frequently referred to as a JITter or a JIT compiler. When JIT called, the JIT Compiler function knows what method is being called and what type defines this method. The JITCompiler function then searches the defining assembly’s metadata for the called method’s IL. JITCompiler next verifies and compiles the IL code into native CPU instructions. The native CPU instructions are saved in a dynamically allocated block of memory. Then, JITCompiler goes back to the type’s internal data structure and replaces the address of the called method with the address of the block of memory containing the native CPU instructions. Finally, JITCompiler jumps to the code in the memory block. This code is then implementation means particular code get executed. Comments (0)
![]() Write comment
You must be logged in to a comment. Please register if you do not have an account yet.
Copyright 2007. All Rights Reserved. |