Compiled languages, explanatory languages, and scripting languages

Source: Internet
Author: User

1. The computer does not directly understand the high-level language, only understands the machine language, so it is necessary to translate the high-level language into machine language, the computer can execute the program written in high-level language. (The computer can only execute machine language: We want to execute the code of the High-level language, we can only use the compiler to turn it into machine language)

2. There are two ways of translating: A. Compilation B. Interpretation. The two approaches are mainly occurring in different times.

3. Compile language: The compiled language written by the program before the execution, need a special compilation process, the program compiled into machine language files, for example, EXE file, later run without recompiling, directly using the results of the compilation is OK, because the translation is done only once, the runtime does not need to translate, So the compiler language program execution efficiency is high!

4. Explanatory language: The process of interpreting the language does not need to compile, save the process , the explanatory language is translated when running the program, such as the explanatory Basic language, there is a special interpreter can directly execute the BASIC program, each statement is executed when the translation ; Such explanatory language should be translated once every time it is executed, the efficiency is lower;

5. Scripting languages (Javascript,vbscript, etc.) are between HTML and programming languages, and HTML is commonly used for formatting and link text. The programming language is often used to send a complex set of instructions to the machine; a. Scripting languages and programming languages have a lot in common, and their functions are more similar to programming languages, and they involve variables. The biggest difference between programming languages is that the syntax and rules of a programming language are stricter and more complex; b. Scripts are also a language, which is also composed of program code;(scripting languages generally have corresponding scripting engines to interpret execution.) They usually need an interpreter to run . Javascript,asp,php,perl are scripting languages. C/C + + compile, link, can form a standalone EXE file) c.scripting language is an explanatory language, such as Vbscript,javascript,installshield script and so on, unlike c\c++ And so on can be compiled into binary code, in the form of executable files exist. The scripting language does not need to be compiled, can be used directly, and is interpreted by the interpreter. D. Scripting languages are generally present in textual form, similar to a command; For example: If you have a program called Aaa.exe, you can open the. aa file with the extension. You specify a set of rules for the. aa file, and when someone else has written a. aa file, your program uses this rule to understand and respond to the author's intentions, which is the scripting language;

6.Java language: The Java language is both compiled and interpreted, compiled only once, interpreted and executed by the execution of the program, and the Java program is translated into an intermediate code-bytecode, which is then interpreted by the JVM as the language of the corresponding platform;

Compiled languages, explanatory languages, and scripting languages

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.