What is the difference between execution and compilation?

Source: Internet
Author: User

I. Compiler

A compiler is a special program that converts a program written in a specific programming language into a machine code that a machine can run. When we write a program, the environment we use is a text editor. At this time, we call the program a source program. After that, the programmer can run the corresponding compiler, by specifying the name of the file to be compiled, you can convert the corresponding source file (through a complex process) to machine code.

Ii. machine code

Machine language is a system of instruction sets. This instruction set, known as machine code, can be directly interpreted by the computer's CPU.

Iii. Target Program

The target program is also called the "Target Program ". A program that is equivalent to a program that consists of machine codes. A program that can be directly run by a computer is called a target program.

4. What is the CLR in. NET?

It is ASP.. NET public Language Runtime Library, that is. the aspx page is compiled into a dll file through CLR, because the aspx page can use C #/VB.. NET/J.

5. What is the difference between execution and compilation?

Computers cannot directly accept and execute source programs written in advanced languages. When a source program is input into a computer, the program is translated into a target program in the form of machine language, only computers can recognize and execute. This kind of "Translation" usually has two ways: the compilation method and the interpretation method. The compilation method refers to the use of a previously compiled machine language program called the Compilation Program, which is stored in the computer as system software. After the user inputs the source program compiled in the advanced language into the computer, compile the program to translate the source program into a machine language equivalent to the target program, and then the computer executes the target program to complete the operations to be processed by the source program and obtain the results. After the source program enters the computer, the interpreter scans and interprets the program, and translates the program into sentences one by one. The Interpreter executes the program without generating the target program.

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.