Home>Article> The difference between machine language, assembly language and high-level language

The difference between machine language, assembly language and high-level language

王林
王林 Original
2020-05-11 13:32:45 19329browse

The difference between machine language, assembly language and high-level language

The differences between machine language, assembly language and high-level language are as follows:

Machine language

Machine language It is an instruction set system. It is a language expressed in binary code. It is the only language that a computer can directly recognize and execute. It has the advantages of being directly executable by a computer, concise, and fast in operation. However, it is not intuitive and very It is error-prone, difficult to check and debug the program, and is also highly dependent on the machine.

Assembly language

Assembly language is a machine-oriented programming language. It is used to solve the shortcomings of machine language that is difficult to understand and remember, using names that are easy to understand and remember. The sum symbol represents the operation code in the machine instruction. Using symbols to replace the binary code of the machine language turns the machine language into assembly language; therefore, assembly language is also called symbolic language.

Programs written in assembly language cannot be directly recognized by the machine. A program is required to translate the assembly language into machine language. This translation program is called an assembler. The assembler is a language processor in the system software. system software. The process of translating assembly language into machine language by the assembler is called assembly.

High-level language

High-level language provides users with a way of working that is close to natural language, can use mathematical expressions, and is relatively independent of machines. Like assembly language, machines cannot directly execute programs written in high-level languages.

High-level language does not refer to a specific language, but includes many programming languages, such as the currently popular java, c, c, C#, pascal, python, etc.

High-level languages have stronger expression capabilities, can easily express data operations and program control structures, can better describe various algorithms, and are easy to learn and master. However, the program code generated by its compilation is generally longer than the program code designed in assembly language, and the execution speed is also slower.

The above is the detailed content of The difference between machine language, assembly language and high-level language. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is cpu turbo Next article:what is cpu turbo