Home > Common Problem > body text

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

青灯夜游
Release: 2023-01-13 00:34:50
Original
15697 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template