Home >Common Problem >What is a binary language that expresses instructions directly in binary code?

What is a binary language that expresses instructions directly in binary code?

青灯夜游
青灯夜游Original
2020-12-02 17:09:2212650browse

Machine language is a binary language that directly uses binary code to express instructions. Machine language is a collection of machine instructions expressed in binary code that a computer can directly recognize and execute; an instruction is a statement in machine language, which is a set of meaningful binary codes.

What is a binary language that expresses instructions directly in binary code?

The operating environment of this article: Windows 7 system, Dell G3 computer.

Machine language is a binary language that directly uses binary code to express instructions.

Machine language is a programming language or instruction code that can be directly recognized by the machine without translation. Each operation code has a corresponding circuit inside the computer to complete it, or it can be completed without translation. A programming language or instruction code that is directly understood and accepted by the machine. Machine language uses absolute addresses and absolute opcodes. Different computers have their own machine languages, that is, instruction systems. From a usage perspective, machine language is the lowest level language.

Machine language is a set of machine instructions represented by binary code that a computer can directly recognize and execute. It is the operating function given to the computer by the computer designer through the computer's hardware structure. Machine language has the characteristics of flexibility, direct execution and high speed. The machine languages ​​of different types of computers are incompatible. A program compiled according to the machine instructions of one type of computer cannot be executed on another type of computer.

Machine language instruction is a binary code consisting of operation code and operand. An instruction is a statement in machine language, which is a meaningful set of binary codes.

The opcode specifies the operation of the instruction. It is a keyword in the instruction and cannot be defaulted. The operand represents the operand of the instruction. The computer's instruction format has a great relationship with the machine's word length, memory capacity and instruction function.

From the perspective of facilitating program design, increasing parallelism of basic operations, and improving instruction functionality, instructions should contain a variety of information. However, in some instructions, because part of the information may be useless, this will waste the storage space occupied by the instruction and increase the number of memory accesses, which may actually affect the speed.

Therefore, how to design the instruction format reasonably and scientifically, so that the instruction can not only give enough information, but also make its length match the word length of the machine as much as possible, so as to save storage space and shorten the value acquisition time. , improve the performance of the machine, which is an important issue in the design of instruction format.

If you want to know more about programming learning, please pay attention to the php training column!

The above is the detailed content of What is a binary language that expresses instructions directly in binary code?. 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