Code Execution in .NET

  • In .NET code is executed twice
  • In first compilation source is compiled by respective language compiler and an intermediately code is generated known as MSIL 
  •    In second compilation MSIL is converted in to Native code using CLR

          LC:           Language Compiler
 
         MSIL:       Microsoft Intermediate Language
 
         CIL:           Common Intermediate Language
 
         CLR:          Common Language Runtime


  • Always first compilation is slow and second compilation is fast
  •   MSIL is only CPU Independent & will run only on windows OS only using .NET framework  because .NET framework is designed for Windows Operating System only
  •  There is another company known as Novel designed separate framework known by MONO framework using this framework we can run MSIL on different Operating Systems like Linux, Solaris, Mac OS,BSD, OSX etc




  •   .NET is a platform dependent  using .NET framework but independent using Mono framework
  • Mono Framework is designed by Novel Company
  •  Here in.NET source code means code that has been written in any programming languages supported by .NET
  •  Every programming language has its own compiler
  •  Code might have been written in any programming language and is compiled by any language compiler code will come into a common form i.e. MSIL Like





No comments:

Post a Comment

Translate