What CLR and FCL Provide?
The following is a small list of what CLR and FCL provide:
- Consistent Programming Model: all application services are offered via common object oriented programming model.
- Run once, Run always: In COM, if you replace a COM DLL, the previously installed application may show strange behaviour or stop working at all. The architecture of .Net allows to run more than 2 versions of same component side-by-side. So once an application runs using a component, it will always run and load the component it was built and tested with, even if new versions of the same components are added to the library.
- Simplified Deployment: Deployment of .Net applications is as easy as copying the application files to a directory and creating short-cuts on desktop or start menu.
- Wide Platform Reach: Source code of a .Net application is compiled into a Intermediate Language (IL) code. At run time the CLR translates the IL code into the native CPU instructions. The translation is done for the host CPU. This means you can deploy the .Net application on any machines that has CLR and FCL runnint on it.
- Programming Language Integration: .Net allows programming language to integrate with one another so that you can use types written in one programming language into other programming languages. Common Type System (CTS) makes this possible.
- Automatic Memory Management (Garbage Collection): CLR provides automatic memory management which avoids the problems of memory leak.
- Type-safe Varification: CLR can varify that your code is type-safe. Type safety ensures that the objects are always accessed in compatible ways.