Computers cannot directly understand advanced languages, but can only directly understand machine languages.
Language can be translated into machine languages before computers can executeProgram.
There are two translation methods: Compilation and interpretation. The main difference between the two methods is that the translation time is different.
Before executing a program written in a compilation language, you must first go through a compilation process to generate
The local machine language must be saved as a binary file in the format of .exe. Otherwise
Compilation is required, but the compilation result can be directly used. Therefore, only one translation is required. While
An interpreted language does not need to be compiled. It requires the computer to explain each statement each time it executes.
Each statement is translated only when it is executed. In this way, each execution of an explanatory language program will translate
Time, low efficiency.
Script Language:
1. The scripting language (JavaScript, VBScript, etc.) is between HTML and C, C ++, Java, and C.
HTML is usually used to format and link text. WhileProgramming LanguageUsually used to send a series of complex
.
2. There are many similarities between scripting and programming languages. Their functions are similar to programming languages.
Variable involved. The biggest difference with programming languages is that the syntax and rules of programming languages are stricter.
3. Script Language and programCodeRelationship: scripts are also a language, which is also composed of program code.
Note: The script language generally has a corresponding Script Engine for interpretation and execution. They generally need the interpreter
Run. Javascript, VBScript, PHP, ASP, Perl, and Python are all scripting languages. C/C ++ editing
After translation and link, an independent EXE file can be formed.
4. The script language is an explanatory language, such as VBScript, JavaScript, and install script.
Unlike C/C ++, which can be compiled into binary code and can exist in the form of executable files. Script Language
It does not need to be compiled. It can be directly used and explained by the interpreter.
5. script languages generally exist in the form of text, similar to a command.