. NET compilation process,. net Compilation

Source: Internet
Author: User

. NET compilation process,. net Compilation

Summarize the compilation process of. NET,

The general advanced programming language will compile the code into machine code, that is, the unmanaged code we call, and execute it on the computer that compiles it.

During. NET code compilation, the advanced programming language will be compiled into an intermediate language and run on the CLR (Common Language Runtime Library), that is, the code will be integrated into an exe file,

. NET does not directly compile the code recognized by the CPU in the compilation process, but is compiled into the code recognized by the CLR, which lays the foundation for cross-platform.

For example, if the code we write in C language is to be transplanted to C # in C #, the CLR compiled from another language, that is, the exe file, can be directly compiled as long as there is a response compiler..

In general, the compilation process is to program the language that the user understands, such as Console. WriteLine ("hello, world"), into the code recognized by the CLR, that is, to integrate the exe file.

Then compiled by CLR into the 0 and 1 that the CPU knows.

Above.

Related Article

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.