One of ASP. NET Basics

Source: Internet
Author: User

What is. NET Framework?

======================================

You can think of. NET Framework as an installable infrastructure for writing and running software. After you install this infrastructure on a Windows operating system, it will create a hugeCodeClass library is used to help you write code. It also creates a running platform that matches the Code, also known as a process virtual machine or application.ProgramVirtual Machine.

 

. NET framework can work in many different code languages, specifically any support. NET language, such as C #, Asp. net, VB. net. this infrastructure contains various classes, including user interface rendering, file read/write, database connection, network communication, encryption, and so on. all of these are in the base class library. Programmers will apply these basic classes to their own code when writing code.

 

The precise definition of. NET Framework is as follows:

A process virtual machine runs inside the OS as a normal application. it serves a single application process and is spun up when the application begins, and destroyed when the application stops. this little, isolated environment helps the code inside to be indifferent to hardware and OS details.

It is a common application process running on the operating system. it provides a separate application process, which is created at the beginning of the application and destroyed at the end of the application. this small isolated environment helps the code ignore the details of the operating system and hardware.

 

What is CLR?

======================================

CLR stands for common language runtime, Which is. net initiative core, more importantly, it may be the core part of the CLI (Common Language infrastructure) standard. it is composed.. Net Virtual Machine Used to run software.

The purpose of the common language infrastructure, or CLI, is to provide a language-neutral platform for application development and execution, including functions for exception handling, garbage collection, security, and interoperability.

Common Language infrastructure (CLI) is designed to provide a neutral language platform for application development and execution, including functions for exception handling, garbage collection, security control, and interoperability.

 

CLR is.. NET Framework virtual machine components. all. the. NET program is executed under the supervision of CLR to ensure that some attributes and behaviors in memory management, security, and exception handling are set and executed.

The CLI standard defines an environment that can be used on different computer platforms. Multiple advanced languages can be used in this environment without re-writing a specific architecture. it is a bit like a hardware abstraction layer (HAL) for the DLL service, so that developers do not need to worry about the operating system or CPU type of the program or DLL.

 

During compilation. NET Programming versions, the source code is translated into common intermediate language code rather than platform or processor-specific object code. CER is a CPU-and platform-independent instruction set that can be executed in any environment supporting the common language infrastructure (either. net Runtime on Microsoft Windows operating system, or the independently derived mono, which also works on Linux or UNIX-based operating systems ). pencil code is verified for safety during runtime, providing better security and reliability than natively compiled binaries.

In. netProgramming LanguageDuring compilation,Source codeCompilation is translated into common intermediate language (Common intermediate language) Code, rather than the target code for a specific platform or processor. it is an instruction set independent of the CPU and platform. It can be executed on any platform that supports common language infrastructure (it can be on a Windows operating system. net runtime, or an independently derived mono platform. Mono can work on Linux or UNIX-based operating systems ). the safety is verified during running, which is more secure and robust than the natively binary file.

 

As a developer, you write code in. Net advanced languages, such as C #.

After the compiler reads your code, it creates the intermediate language (CEL) Code. This code is of a low level, but it is still readable.

During runtime, the just-in-time compiler translates the template code into 'native Code'. The so-called native indicates that a specified OS is native.

 

 

CLR is responsible for the following:

    • Memory Management
    • Thread Management
    • Exception Handling
    • Garbage Collection
    • Code Security

 

So what is just-in-time compilation?

========================================

Just-in-time compilation (dynamic translation) is a way of improving Code/program performance. instead of compiling ahead-of-time (which is the other, static type of code compilation), JIT is always compiling just as code is needed, and if a piece is already compiled, this piece will be cached for later use.

Just-in-time compilation, also known as dynamic translation, is a way to provide code or program performance. JIT has always been compiled only when the code needs to be executed, rather than all compilation before execution (that is, another static code compilation method ), if a piece of code has been compiled, the compiled section will be cached for later use.

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.