Recently, due to the company's need to contact the magic of Python language, give me the feeling is to develop fast and code simplicity.
Let's start with a list of the differences between explanatory and compiled languages. 0.0!
Compiler language: before the program runs, it requires a specialized compilation process, such as generating exe,hex files and other specific machine language files . (Must be on a specific system). So you can run it in the future without having to compile it. However, the file cannot boast the operating system platform because the file is not recognized in different operating systems .
Explanatory language: no explanation is needed to run a line of translation when the program executes. So every execution has to be explained.
The essential difference between the two
1 run at different times:
compiled languages are compiled before the program is run
Explanatory language is interpreted while the program is running
2 Portability:
A compiled language can only be run on a specific machine, not portable
Interpretive languages enable cross-platform operations
We know that some compiled languages such as C, C + +, they need to be compiled from the source file into the language of the computer, through the connector to form an executable binary file, executed when the binaries are loaded into memory run.
The general explanatory language runs in a very different way from the compiled language. Explanatory language directly from the source code to run the program, and is a sentence of the execution, then how they let the machine know? The interpreter for each interpreter language will be used here. For example, the Python interpreter converts the source code directly into bytecode, and then the interpreter executes the bytecode, translates it into machine language, and finally runs on the machine. These mechanisms cause Python to have the following characteristics.
Since each execution is converted to bytecode, and then converted to machine language by the virtual machine, the performance of the program will certainly be affected, because programmers do not care about the compilation of the program and the Library link problem development work is easier, because there is a Python interpreter and the machine to interact with the bottom, This allows Python code to be farther from the bottom of the machine, so Python implements a cross-platform.
Python provides a compilation method for performance issues, compiles a PYC file, stores bytecode, and then has a dedicated Python interpreter that interprets and executes bytecode, eliminating the interpreter's process of converting source code into bytecode. It also saves time in loading the module and improves execution efficiency, and compiling the PYc file also increases the security of the code to a certain extent.
Getting started with Python-python interpreter execution