Home  >  Article  >  Is assembly language a machine-oriented language?

Is assembly language a machine-oriented language?

青灯夜游
青灯夜游Original
2020-11-02 10:48:508656browse

Assembly language is a machine-oriented programming language. Assembly language is any low-level language used in electronic computers, microprocessors, microcontrollers or other programmable devices, also known as symbolic language. In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process.

Is assembly language a machine-oriented language?

Machine language

Computer hardware is a circuit component, and its output and input can only be Power or no power, that is, the so-called high level and low level, so the data transmitted by the computer are binary numbers composed of "0" and "1", so binary language is the essence of computer language.

At the beginning of the invention of the computer, in order to control the computer to complete their own tasks or projects, people could only write binary number strings such as "0" and "1" to control the computer. In fact, it was to control the level of computer hardware. Level or path is open, this language is machine language.

Intuitively, machine language is very obscure and difficult to understand, and its meaning often has to be understood by looking up tables or manuals. It is very painful to use, especially when you need to modify a completed program. This kind of understanding Machine language that seems disordered will make it difficult for you to start, and it will be difficult to find program errors.

Moreover, different computers have different operating environments, and the instructions and operations are also different. Therefore, when you use this machine language, it becomes specific and can only be executed on a specific computer. Once you change The machine needs to be reprogrammed, which greatly reduces the efficiency of program use and promotion.

However, because machine language is specific and perfectly adapts to a specific model of computer, its operating efficiency is much higher than that of other languages. Machine language is the first generation programming language.

Assembly language (machine-oriented programming language)

It is not difficult to see that machine language, as a programming language, has poor flexibility and poor readability. In order to alleviate the discomfort that machine language brings to software engineers, people have upgraded and improved machine language: replacing a specific instruction with some letters and words that are easy to understand and remember. Through this method, it is easy for people to read the completed program or understand the functions the program is performing. Bug fixing and operation and maintenance of existing programs have become easier and more convenient. This language is what we call assembly language. That is, the second generation computer language.

Assembly Language (Assembly Language) is any low-level language used for electronic computers, microprocessors, microcontrollers or other programmable devices, also known as symbolic language. In assembly language, mnemonics are used to replace the opcodes of machine instructions, and address symbols or labels are used to replace the addresses of instructions or operands. In different devices, assembly language corresponds to different machine language instruction sets, which are converted into machine instructions through the assembly process. There is a one-to-one correspondence between a specific assembly language and a specific machine language instruction set, and they are not directly portable between different platforms.

Compared with machine language, assembly language has higher machine relevance and is easier to remember and write, but at the same time it retains the high speed and efficiency of machine language. Assembly language is still a machine-oriented language. It is difficult to understand the programming intention from its code. The designed program is not easy to be transplanted, so it is not as widely used as most other high-level computer languages. Therefore, today, when high-level languages ​​are highly developed, they are usually used at the bottom level, usually for program optimization or hardware operations.

For more programming-related knowledge, please visit: Programming Courses! !

The above is the detailed content of Is assembly language a machine-oriented 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