Differences between interpreted language and compiled language

Source: Internet
Author: User

The difference between the Interpretation Language and the compilation language lies inProgramDuring each running, the program must be dynamically interpreted and executed through the interpreter. The program written in the interpreter language is sometimes called a script. Generally, the reader can directly read the program.Code. The interpreter reads the script, explains it, And then executes the commands in the script. For example, we usually use the doscommand line command execution environment as an interpreter. Read and enter the "dir" command and press Enter. The Interpreter receives and translates the command, calls the system to run the command, and displays the result. The corresponding. bat batch file is a script.

The compilation language must use a compiler to translate the program into a computer machine language. The compiled program can run independently without other programs. Because the compiled program is composed of machine language commands, it usually runs very quickly. However, computers on different hardware platforms have different machine languages, which also makes it impossible for compiled programs to be transplanted from one computer platform to another. Therefore, different platforms often need to re-compile or even rewrite the program. This restriction does not apply to an interpreter. In general, as long as there is a corresponding version of the language interpreter, the script program can be transplanted to other platforms with almost no modification.

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.