Linux Small Knowledge Translator-compiler and interpreter

Source: Internet
Author: User

This time talk about "compilers and interpreters".

In programming languages, there are compiled languages represented by C and interpreted languages, which are represented by Perl. Either way, the program is recorded in a form that human beings can understand, and this form of computer is incomprehensible.

Therefore, there will be compilers and interpreters.

For compiled languages, it is the use of compilers to convert human-readable code into machine-language files that machines can understand, and then implement the program by executing this "machine language" file.

On the other hand, for an interpreted language, the interpreter is used to interpret the human-readable code on a row-by-line basis while interpreting the program. (The explanation here is to interpret the code as a machine language so that the computer can understand it)

Even some languages can be executed after compilation, or they can be interpreted side by side.

The compiled language executes without the interpreter's intervention, so the general execution speed is relatively fast. But at development time, each time the code is compiled, the Code and debugging takes longer to write.

Interpreted languages are generally slower to execute than compiled languages, but the advantage is that they can be executed immediately after the code is modified. (This can save development time)

The compilation language and the interpretation language each have the length, not to say which is better, rather than according to the actual situation chooses the suitable.

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.