You must Sign In to post a response.
  • Category: ASP.NET

    Difference between common language runtime nad just in time

    Difference between common language runtime and just in time
    explain briefly
  • #648477
    justintime compiler is used to compile the code at the time of execution. CLR is responsible for invoking the JIT- Justintime compiler to compile the code when required. JIT is part of CLR. CLR provides execution environment for managed code.
    Miss. Jain
    Microsoft Certified Technology Specialist in .Net

  • #648482
    The Common Language Runtime (CLR) is the execution engine for .NET Framework applications (Similar to JVM in Java). CLR is primarily responsible for code execution of the program. It provides a number of services, including the following:

    a) Code management (loading and execution)
    b) Application memory isolation.
    c) Version control.
    d) Garbage collection
    e) Enforcement of code access security.
    f) Exception handling, including cross-language exceptions
    g) Interoperation between managed code. etc.

    The JIT Compiler is responsible for converting the IL codes to machine executable codes. It is called just in time, as it compiles on demand. Once it has compiled a part of IL code to machine code, it stores the memory address of that part within itself so that it will not recompile again.


    Thanks & Regards
    Paritosh Mohapatra
    Microsoft MVP (ASP.Net/IIS)
    DotNetSpider MVM

  • #648533
    Common Language Runtime (CLR) is the execution engine for .NET Framework applications which is responsible for execution of code.

    Whereas JIT is a compiler which is responsible for converting the IL codes to machine executable codes.

    Regards,
    Sugandha
    Microsoft Certified Technology Specialist
    MY Blog..

  • #648541
    The JIT compiler is just one small part of the CLR.

    The code is never interpreted in .NET - always JIT compiled and then
    executed natively (with support from the CLR, of course).

    Before a method is used which has not yet been converted from the intermediate representation it is the JIT's responsibility to convert it.

    With Regards
    Kushal

  • #648573
    The Common Language Runtime (CLR) is an Execution Environment .
    It works as a layer between Operating Systems and the applications written in .Net languages that conforms to the Common Language Specification (CLS).

    The Common Language Runtime is the engine that compiles the source code in to an intermediate language. This intermediate language is called the Microsoft Intermediate Language.

    Regards
    Mr.Rajesh
    Software Engg.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.