What is CLR?

Answer Posted / jasbir singh thakur

Common Language Runtime (CLR)

working of CLR:-

When the .NET program is compiled, the output of the
compiler is not an executable file but a file that contains
a special type of code called the Microsoft Intermediate
Language (MSIL), which is a low-level set of instructions
understood by the common language run time. This MSIL
defines a set of portable instructions that are independent
of any specific CPU. It's the job of the CLR to translate
this Intermediate code into a executable code when the
program is executed making the program to run in any
environment for which the CLR is implemented. And that's
how the .NET Framework achieves Portability. This MSIL is
turned into executable code using a JIT (Just In Time)
complier. The process goes like this, when .NET programs
are executed, the CLR activates the JIT complier. The JIT
complier converts MSIL into native code on a demand basis
as each part of the program is needed. Thus the program
executes as a native code even though it is compiled into
MSIL making the program to run as fast as it would if it is
compiled to native code but achieves the portability
benefits of MSIL.

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between vb 6 and vb.net?

723


Explain trace in vb.net?

713


What is non_deterministic finalization?

815


Explain about the keyword must inherit?

744


Explain the observations between vb.net and vc#.net?

678


Explain cls?

754


What is a static variable?

1022


How a base class method is hidden?

797


Write the role of new keyword?

820


How many ways the function can return values?

737


How do you retrieve the customized properties of a .net application from xml .config file?

707


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

774


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2429


Explain the difference between namespace and assembly?

678


Using VB, how can you change the Mouse Pointer?

835