Framework diagram of the. Net Framework

Source: Internet
Author: User

. Net Framework framework diagrams, such as:

  

It shows a way to write software or to say it. NET platform to develop software ideas and specifications.

The. Net framework framework actually contains only two parts:

1. Common language Runtime (Clr:common Language runtime);

2, Frame class library (Fcl:framework class libraries).

Can imagine oneself is a software project manager, it is very unfortunate that the programmer in hand has mastered VB, VC + + and C # Programmer each, then how to make these programmers writing to develop the same project? Previously impossible tasks are possible under the. Net Framework, and these programmers develop projects in the way they are proficient:

The first layer: programmers use their familiar way to complete their own modules, these modules may use different development language;

Second layer: modules developed in different languages, integrated through the Common Language Specification (Cls:common Language specification), the Common Language Specification abstracts public parts from a variety of programming languages and provides support for a variety of programming languages in the form of COM components. In addition, the common type system (Cts:common type systems) is also. NET platform is one of the important features that it provides. NET Standard data types and guideline sets. Strictly speaking, the CLS is a subset of the CTS. Modules in different programming languages, at this level, are converted to the languages supported by the CLS through COM components, namely, Microsoft intermediate language MSIL (Microsoft Interspace Language), while the related data types are converted to the types used by the CTS (for example: convert int to System.Int32 type, string to System.String type, etc.).

The third and fourth layers are. NET most important components, which are what programmers need and can manipulate, each development component represents the development direction of an application, and is the framework of some kind of application. If the first two layers are just a process of how different programming languages achieve unification, these two layers are used. NET provides the various components, carries on the concrete development process.

Layers fifth and sixth are the real. Net Framework framework. All the work you've done before can be considered. NET various development components support the process of encoding. Starting from these two layers is the programmer to complete the compilation of the debugging and running phase.

When the program code executes a build operation (build), the common language runtime (CLR) connects to the Framework class library (FCL), extracts the required class libraries, and compiles the code that is represented by the Microsoft intermediate Language (Msil:microsoft interspace Language).

1. The functionality of the API (Windows application Interface) Call level has an FCL, such as console processing, file processing, database processing, network processing, desktop processing, and web processing.

2. The CLR is similar to a Java-based virtual machine that is used to provide operations on different platforms. NET application environment.

Of course, in order to maintain the market benefits of Microsoft's operating system, Microsoft is obviously reluctant to allow other systems to run easily. NET program, but this is only a marketing strategy issue rather than a technical issue.

The contents of the Framework class Library FCL are as follows:

Finally, when the program runs, it is compiled two times by the JIT (just in time) compiler in the CLR, compiling the intermediate language into machine code and executing the program.

During the development phase of the program, the code is saved after the first compilation (build operation) and converted to an intermediate language, and the JIT is responsible for compiling two times when the program is run. So ". NET compile-end. exe file "is actually a code file in the middle language. When you double-click the program to run, the intermediate language is interpreted as a machine code and executed by the JIT. The execution process is as follows:

About the data types of the C # language, such as:

Framework diagram of the. Net Framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.