Lecture overview -- Keyboard shortcut: 'u'  Previous page: CLI Overview from Wikipedia -- Keyboard shortcut: 'p'  Next page: C# in relation to C [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 5 : 43
Object-oriented Programming in C#
Introduction to C#
C# Compilation and Execution

The Common Language Infrastructure supports a two-step compilation process

  • Compilation

    • The C# compiler: Translation of C# source to CIL

    • Produces .dll and .exe files

    • Just in time compilation: Translation of CIL to machine code

  • Execution

    • With interleaved Just in Time compilation

    • On Mono: Explicit activation of the interpreter

    • On Window: Transparent activation of the interpreter

.dll and .exe files are - with some limitations - portable in between different platforms