C#:A Better Language
Essay Preview: C#:A Better Language
Report this essay
C# source code compiles into managed code. Managed code is an intermediate language (IL) because it is halfway between the high-level language (C#) and the lowest-level language (assembly/machine code).

At run time, the Common Language Runtime (CLR) compiles the code on the fly by using Just In Time (JIT) compiling.
An obvious con is the inefficiency of compiling the code at run time. This process is different from interpreting, which is typically used by languages such as Visual Basic, Perl and JScript.

The JIT compiler compiles a function or method only the first time, and when it does, it produces machine code native to the platform on which its running. An obvious pro of JIT compiling is that the working set of the application is reduced, because the memory footprint of intermediate code is smaller. During the execution of the application, only the needed code is JIT-compiled.

Moreover, the CLR can optimize the programs execution on the fly at run time. For example, the CLR may determine a way to reduce page faults in the memory manager by rearranging compiled code in memory, and it could do all this at run time.

You can actually compile a C# program on a Windows platform and execute the output on both Windows and Linux without having to recompile, because even the file format is standardized.

The garbage collector frees you from the burden of handling memory allocation and deallocation, which is where many software errors can occur.
Accelerated C# 2008 Trey Nash APRESS Publishers 1-590-59-873-3

Get Your Essay

Cite this page

Source Code And Intermediate Language. (July 20, 2021). Retrieved from https://www.freeessays.education/source-code-and-intermediate-language-essay/