Common Language Infrastructure

From Wikipedia, the free encyclopedia

For other uses of CLI, see the disambiguation page CLI
Visual overview of the Common Language Infrastructure (CLI)
Enlarge
Visual overview of the Common Language Infrastructure (CLI)

The Common Language Infrastructure (CLI) is an open specification developed by Microsoft that describes the executable code and runtime environment that form the core of the Microsoft .NET Framework. The specification defines an environment that allows multiple high-level languages to be used on different computer platforms without being rewritten for specific architectures.

To clarify, the CLI is a specification, not an implementation, and is often confused with the Common Language Runtime (CLR), which contains aspects outside the scope of the specification.

Among other things CLI specification describes the following four aspects:

  • The Common Type System (CTS) — A set of types and operations that are shared by many programming languages.
  • Metadata — Information about program structure is language-agnostic, so that it can be referenced between languages and tools, making it easy to work with code written in a language you are not using.
  • Common Language Specification (CLS) — A set of base rules which any language targeting the CLI should conform to in order to interoperate with other CLS-compliant languages.
  • Virtual Execution System (VES) — The VES loads and executes CLI-compatible programs, using the metadata to combine separately generated pieces of code at runtime.

All compatible languages compile to Common Intermediate Language (CIL), which is an intermediate language that is abstracted from the platform hardware. When the code is executed, the platform-specific VES will compile the CIL to the machine language according to the specific hardware.

Contents

[edit] Standardization and Licensing

In August 2000, Microsoft, Hewlett-Packard, Intel, and others worked to standardize CLI. By December 2001, it was ratified by the ECMA, with ISO standardization following in April of 2003.

While Microsoft and their partners hold patents for CLI, ECMA and ISO require that all patents essential to implementation be made available under "reasonable and non-discriminatory (RAND) terms." The companies have agreed, instead, to make the patents available under "royalty-free and otherwise RAND" terms.


[edit] Implementations

  • Microsoft .NET Framework contains Microsoft's commercial implementation of the CLI for desktop systems, but also encompassing a larger collection of resources, libraries, and tools.


[edit] External links

[edit] References