60 likes | 209 Views
Compilation and Execution of C# Programs. C# Program Execution. Computer. .net “Runtime”. Microsoft Intermediate Language. C#. Compiler. Your original Program stored In one or more .cs files. Translates your program into the Microsoft Intermediate
E N D
C# Program Execution Computer .net “Runtime” Microsoft Intermediate Language C# Compiler Your original Program stored In one or more .cs files. Translates your program into the Microsoft Intermediate Language Part of Visual Studio (The Build command) An .exe file which is executed by the .net “Runtime”. The .net Runtime is a program which can be executed by the computer and interprets the program in your .exe file.
Implications . . . Computer .net “Runtime” Microsoft Intermediate Language • The computer cannot execute a compiled C# program directly. • You do not need Visual Studio to run the program once it has been compiled. Just run the .exe file. Windows starts the .net Runtime which then executes your program. • To run the program on a different device, only the .net Runtime has to change. C# Compiler
.net, Java, and Older Architectures Languages Program executed by Compiled to Security To run on a different type device type . . .