Compiled language and interpreted language

Source: Internet
Author: User

Reference: http://jingyan.baidu.com/article/656db918ede71ee381249c05.html# #1

Computers are not able to understand high-level language, and can not directly implement high-level language, it can only directly understand machine language, so the use of any high-level language programs written by the computer to be run, it must be converted to computer language, that is, machine code.

There are two ways to convert this:

1) compiling

2) explanation

This high-level language is also divided into compiled and interpreted languages.

Compile-language:

Using a dedicated compiler, for a specific platform, the high-level language source code is compiled into machine code that can be executed by the platform hardware, and packaged into the format of the executable program that the platform can recognize.

Characteristics:

In the compiled language before the execution of the program, need a special compilation process, the source code compiled into machine language files, such as EXE format files, and later to run, directly using the results can be compiled, such as directly run EXE file. Compiled languages perform efficiently because only one compilation is required and the runtime does not need to compile at a later time.

Summarize:

1) A one-time compilation of platform-related machine language files, running out of development environment, high efficiency;

2) related to the specific platform, generally cannot be ported to other platforms;

3) The existing C, C + +, objective, etc. are compiled languages.


Interpreted language:

Use a dedicated interpreter to interpret the source code line-by-row into a specific platform's machine codes and execute them immediately.

Characteristics:

An interpreted language does not need to be compiled beforehand, it interprets the source code directly as a machine code and executes it immediately, so that the program can be run as long as the appropriate interpreter is provided on a platform.

Summarize:

1) Each operation of the explanatory language requires that the source code be interpreted and executed with low efficiency;

2) As long as the platform to provide the corresponding interpreter, you can run the source code, so it can be convenient to transplant the source program;

3) Python is an interpreted language.


Compiled language and interpreted language

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.