The difference between interpretive language and compiled language

Source: Internet
Author: User

Ext.: http://blog.csdn.net/summerhust/article/details/7446894

Compiled language before the program executes, there is a separate compilation process to translate the program into machine language, and later when the program is executed, it is no longer necessary to translate.

The interpreted language, which translates the program into machine language at run time, is slower than the compiled language.

C + + is a compiled language, and java,c#, etc. are all interpreted languages.

Although the Java program has a compilation process before it runs, it does not compile the program into a machine language, but compiles it into bytecode (which can be understood as an intermediate language).
At run time, the JVM translates the bytecode into machine language.
Note: Scripting languages generally have a corresponding scripting engine to interpret execution. They usually need an interpreter to run. Javascript,asp,php,perl,nuva are scripting languages. Compiled and linked by C/C + +, you can create an EXE file that executes independently.

4. Scripting language is an explanatory language, such as Vbscript,javascript,installshield script,actionscript and so on, it is not like c\c++, etc. 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.

5. Scripting languages are generally present as text, similar to a command.

For example, if you set up a program called Aaa.exe, you can open a. aa file with an extension.

You specify a set of rules (syntax) for writing a. 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. So, this set of rules is the difference between the scripting language and the compiled language

The difference between interpretive language and compiled language

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.