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.