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