|
|
|
|||||
|
9 |
What will happen after the compilation of a C# program? |
|
||||
|
|
||||||
| 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.
|
||||||