Home  >  Article  >  What is a computer's instruction set called?

What is a computer's instruction set called?

青灯夜游
青灯夜游Original
2020-12-24 15:29:1845950browse

The set of instructions for a computer is called "machine language". Machine language is a collection of machine instructions expressed in 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.

What is a computer's instruction set called?

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

The set of instructions for a computer is called "machine language".

Programming language is a formal language used to define computer programs and to issue instructions to the computer. There are many computer languages, and a large number of new programming languages ​​are created every year. According to levels, programming languages ​​can be divided into three categories: machine language, assembly language and high-level language.

  • Machine language consists of a set of machine instructions and can be directly executed by the machine. Programs written in machine language have problems that are difficult to read and remember.

  • Assembly language essentially operates directly on hardware. Due to the use of mnemonics, it is more convenient to write and read than machine language.

  • In high-level languages, multiple assembler statements are merged into more concise programming statements, and at the same time, some tasks such as stack and register allocation management are automatically completed, making it more convenient for programmers to develop programs. .

Machine language is a collection 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.

An instruction is a statement in machine language. It is a set of meaningful binary codes. The basic format of the instruction is such as the operation code field and the address code field. The operation code specifies the operation nature and function of the instruction. , the address code gives the operand or the address of the operand.

To write programs in machine language, programmers must first memorize all the instruction codes of the computer used and the meaning of the codes. When hand-programming, programmers have to handle the storage allocation and input and output of each instruction and data by themselves, and they also have to remember the state of the work unit used in each step of the programming process. This is a very tedious job. The time it takes to write a program is often dozens or hundreds of times longer than the actual running time. Moreover, the programs compiled are all instruction codes of 0s and 1s, which are not intuitive and prone to errors. Except for professionals from computer manufacturers, the vast majority of programmers no longer learn machine language.

Related recommendations: "Programming Video"

The above is the detailed content of What is a computer's instruction set called?. 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