Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




.NET interview questions: - What is an IL code? Why IL code is not fully compiled? Is it possible to view the IL code?

It is a CPU independent partially compiled code. Partial/half compiled means this code is not yet compiled to machine/CPU specific instructions.

IL code compilation:

We do not know in what kind of environment.NET code will run. In other words we do not know what can be the end operating system, CPU configuration, machine configuration, security configuration etc. So the IL code is half compiled and on runtime this code is compiled to machine specific using the environmental properties (CPU, OS, machine configuration etc).

Viewing IL code:

Yes by using ILDASM simple tool we can view a IL code of a DLL or EXE. In order to view IL code using ILDASM, go to visual studio command prompt and run “ILDASM.EXE”. Once ILDASM is running you view the IL code.

Also see .NET interview questions video on IL code, CLR, CTS, CAS: -

Helpful Website Url
http://www.questpond.com/
Share this article   |    Print    |    Article read by 4183 times
Author:
Shivprasad koirala Koirala
I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small E-learning company in India. We are very much active in making training videos , writing books and corporate trainings. Do visit my site http://www.questpond.com for .NET, C# , design pattern , WCF , Silverlight , LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server training and Interview questions and answers
Related Articles:
Related Interview Questions: