TOP CENTER
     

9

What will happen after the compilation of a C# program?   New Page 1
What is Object-Oriented Programming?
What is Microsoft .NET?
What is C#?
What is Common Language Runtime (CLR)?
What do you mean by .NET Framework Class Libraries?
What are Namespaces?
What are the requirements for developing a C# application?
What are the steps involved in developing a C# application?
What will happen after the compilation of a C# program?
What are Identifiers?
What are Keywords?
How do I begin programming with C#?
What are the different editors that are available for C# programming?
How do I build a C# application using Command Line Compiler?
How do I build a C# application using Visual Studio .NET 2003?
How do I build a C# application using Visual Studio .NET "Whidbey"?
 

Anand Narayanaswamy

Posted - February 05, 2005
 
Upon successful compilation, the compiler converts the source code into an Intermediate Language, which is like Byte Codes in Java. The output file will be of extension .exe. Since the Intermediate Language is generated by the C# compiler, it is called as Managed Code. Managed Code can be executed only under a .NET aware platform. You will learn more about the Intermediate Language in a later FAQ. The compiled file is then executed using the C# Interpreter. Upon execution, the code is checked for type safety. Moreover, the Just In Time (JIT) compiler compiles the unit into Managed Native Code and finally Common Language Runtime (CLR) produces the final output.

The final output file can be executed on any system having Common Language Runtime or CLR installed on it. This means each target computer should require .NET framework in order to run your applications. If you are working with ASP.NET, the web server should be loaded with .NET framework. The above mentioned steps are applicable to all .NET languages like Visual Basic .NET, Visual J# .NET. Click here to view a snap shot.

Developers should distribute .NET redistributable along with their products so that end users can install the CLR if they don’t have the .NET Framework on their system.