Read the lerning to program using C #2008 tutorial these two days. Let's take a look at the overall architecture of the. NET Framework (from the appdev video tutorial ):
= Development language = general language definition, which describes different development languages of. net. ===Provide Data Query and processing for web applications and Windows Forms applications ==== basic class library === CLR runtime environment. Equivalent to the JVM === operating system in Java. net Framework architecture diagram and description, according to the two days of learning to sort out several acronyms: 1.cls (Common Language Specification) general language definition, because. net supports multiple development languages and can interact with each other. NET development language should work. 2. the runtime environment of CLR (conmmon Language Runtime) is equivalent to the JVM in Java. It can do a lot of work, such as memory management, automatic recovery, exception management, and version control, manage Security and run applications. We can see that CLR is based on Windows and COM services .. The relationship between net and Windows is like that in the early days when Windows appeared in 1991, windows was installed on DOS to use Windows. At present, you need to install corresponding windows.. NET Framework. net program or development, if say windows top on DOS,. net is another Windows top on windows, which is a metaphor made by the lecturer in the video ~ 3. The base class library of Bcl (base class library). Net is the bottom layer in the figure. It provides a lot of encapsulated functions and is very helpful for us to develop complicated applications. 4. The compiled program of intermediate language in Visual Studio will generate the compiled code of the intermediate language of Il. It is executed by CLR at runtime. The editor JIT used during the runtime will re-compile il into native code (Local Machine language) and then execute it. 5. JIT (just-in-time compiler. net compiled msil is compiled into native code (machine language) Again. It can determine the program optimization after compilation based on the configuration of the machine running CLR, that is to say, if the machine with the P3 processor runs the same program as the machine with the P4 processor, the optimization results provided by CLR are different. JIT only runs the compilation once, and the Code Compiled later will exist locally, and we don't have to worry about performance overhead. It doesn't compile all program code at a time, it is the part used for compilation first. 6. CTS (common type system) is the same as Cls. Because. Net supports multiple development languages, CTS defines the interaction between types of languages.