The difference between programming languages

Source: Internet
Author: User

The difference between programming languages

Why do you want to program? If you want a computer to do what you want, you need to use a language that the computer can understand. The computer can understand the binary, but it is too inefficient to develop. So the best way is to enter simple instructions, and the computer translates the instructions into a binary that the computer can understand.

What programming languages are there?

Computer language is divided into: machine language, assembly language, high-level languages

Machine language


Machine language is a language that can be directly understood by a computer, that is, a language composed of all instructions. Machine language editing program for the target program, only the target program can be recognized and executed by the computer!

The advantages are: the comparison of the lower level, the implementation of high efficiency, the computer can directly understand the instructions.

Disadvantage is: low development efficiency

Assembly

Assembly language is the essence of machine languages, are directly to the hardware operation, but the instruction using the abbreviation of English identifiers, easier to identify and memory. The programmer is required to write each step of the operation in the form of a command.

The advantages are: relative to the bottom, high efficiency of execution.

Disadvantage is: low development efficiency

Advanced language

The high-level language and assembly languages not only combine many of the relevant machine instructions into a single instruction, but also remove details that are not related to the operation but are irrelevant to the completion of the work!

High-level language programming program can not be directly recognized by the computer, must be converted to be executed!

By conversion high-level languages can be divided into: compilation classes and interpreting classes

Compile class: Refers to the application source code before the execution, the program source codes translated into machine language. The target program can be executed independently of its own language locale (the compiled executable file, which is the binary machine code that the computer can understand) executes the program and the source code is separated.

The advantages are: high development efficiency, fast execution speed,

The disadvantage is: once the execution program needs to be modified, the source code must be modified, cross-platform poor, multiple platforms need to develop different versions, high development costs!

Interpretation class: Execution is equivalent to simultaneous translation, and the application source code is translated into the target Code (machine language) on one side and executed on the other. As a result, it is inefficient to produce separate execution files and applications cannot be separated from the translator.

The advantages are: high development efficiency, good cross-platform, a code can be used everywhere.

The disadvantage is: slow execution, rely on the translator!

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