The difference between scripting language and programming language

Source: Internet
Author: User

The type of computer language is very much, in general can be divided into machine language, assembly language, high-level language three broad categories.

1. The language that computers can recognize is only machine language, which is code consisting of 0 and 1. But usually people do not use machine language when programming, because it is very difficult to remember and recognize.

2. The language of assembly language is the same as that of the machine, which is directly to the hardware, but the instruction adopts the English abbreviation identifier, which is easier to recognize and remember. It also requires programmers to write each step of a specific action in the form of a command. Assembler usually consists of three parts: instruction, pseudo-instruction and macro-instruction. Assembler each sentence can only correspond to the actual operation of a very small action, such as mobile, self-increment, so the assembly source program is generally more lengthy, complex, error-prone, and the use of assembly language programming requires more computer expertise, but the advantages of assembly language is also obvious, The operations that can be done with assembly language are not implemented by the general high-level language, and the executable files generated by the source program are not only smaller, but also executed quickly.

3. The high-level language is the choice of most programmers today. Compared with assembly language, it not only synthesizes many related machine instructions into a single instruction, but also removes details related to the operation but not relevant to the completion of the work, such as the use of stacks, registers, etc., which greatly simplifies the instructions in the program. At the same time, because of the omission of a lot of details, programmers do not need to have too much expertise.
High-level language is mainly relative to assembly language, it is not specific to a particular language, but includes a number of programming languages, such as the current popular VB, VC, FoxPro, Delphi, and so on, these languages, the syntax, command format are different. The Pascal language, like the simplest programming language, is also a high-level language.

High-level language programming programs can not be directly recognized by the computer, must be converted to be executed, according to the conversion can be divided into two categories:

1. Interpretation class: The execution is similar to our daily life "simultaneous translation", the application source code on the other side by the corresponding language interpreter "translated" Into the target code (machine language), side execution, so inefficient, and can not generate independent executable files, the application can not be separated from its interpreter, However, this approach is more flexible and can be dynamically adjusted and modified by the application.

2. Compile class: Compile refers to the program source code "translated" Into the target code (machine language) before the application of the source program, so its target program can be independently executed from its language environment, the use is more convenient and efficient. However, once the application needs to be modified, the source code must be modified before the new target file (*) is recompiled. OBJ) to execute only the target file without source code, modification is inconvenient. Most programming languages are now compiled, such as Visual C + +, visual Foxpro, Delphi, and so on.

The difference between scripting language and programming 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.