Home  >  Article  >  Program execution is a cyclic process of instruction execution, right?

Program execution is a cyclic process of instruction execution, right?

青灯夜游
青灯夜游Original
2021-03-25 17:31:1315690browse

Yes, the program is executed cyclically one instruction at a time. First, according to the order specified by the program, the currently executed instructions are fetched from the internal memory and sent to the instruction register of the controller for analysis; then based on the instruction analysis results, the controller issues a series of control potentials required to complete the operation. , while also preparing for the next instruction.

Program execution is a cyclic process of instruction execution, right?

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

The execution of the program is a cyclic process of instruction execution.

Computer Program, translated from Hong Kong and Taiwan into computer programs. A computer program is a set of instructions that a computer can recognize and execute. It is an information tool that runs on an electronic computer to meet certain needs of people.

It is written in some programming languages ​​and runs on some target architecture. For example, a program is like an article written in English (programming language). It needs to be read, understood, and marked by a person who understands English (compiler) and who can also read this article (structure system). article. Generally, computer programs based on English text must be compiled and linked into a digital format that is difficult for humans to interpret but can be easily interpreted by computers, and then put into operation.

The execution process of the program

The first step is to fetch and analyze the instructions. According to the order specified by the program, the currently executed instructions are fetched from the internal memory and sent to the instruction register of the controller. The fetched instructions are analyzed, that is, what operations the computer should perform are determined based on the operation codes in the instructions.

The second is to execute the instructions. According to the instruction analysis results, the controller issues a series of control potentials required to complete the operation in order to direct the relevant components of the computer to complete the operation. At the same time, it is also ready to fetch an instruction.

Program execution is a cyclic process of instruction execution, right?

For more programming related knowledge, please visit: Programming Video! !

The above is the detailed content of Program execution is a cyclic process of instruction execution, right?. 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