Compilation language, explanatory language, and scripting language

Source: Internet
Author: User

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.

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.