Linux kernel Analysis Job one

Source: Internet
Author: User

Jia Original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000

First, how the computer works

The computer is according to the principle of the von Neumann storage program, the computer in the execution of the program must be executed before the relevant program and data into the internal memory, in the execution of the program CPU based on the contents of the current program pointer register to take out instructions and execute instructions, and then remove the next instruction and execute, This loop continues until the program ends the instruction. The process of its work is to constantly take instructions and execute the instructions, and finally put the results of the calculation into the memory address specified by the instruction. The computer hardware parts to be involved in the process of computer work include internal memory, instruction register, instruction decoder, calculator, controller, arithmetic device and input/output equipment, etc.

Experiment

Output is 18

The following is an analysis of this stack

Summarize

The study of this experiment will be the work principle of the computer, namely the von Neumann architecture. The basic principle of computer is Storage program and program control. A sequence of instructions (called a program) and raw data that directs the operation of the computer in advance is delivered to the computer's memory via the input device. Each instruction explicitly specifies which address the computer takes from, what to do, and what address to send to. When the computer is running, the first instruction is removed from the memory, and the controller's decoding, according to the requirement of the instruction, takes the data from the storage to perform the processing of the specified arithmetic and logic operation, and then sends the result to the memory by the address. Next, take out the second instruction and complete the specified operation under the command of the controller. Proceed until the Stop command is encountered. The program and data storage, according to the Order of the program, step-by-step take out the instructions, automatic completion of the instructions prescribed by the computer is the most basic principle of operation.

Knowledge of computer principles from the beginning of the study of specialized courses, basically each course will be involved in more or less, so each study will have some new understanding, but also more skilled than before. And hopefully the new semester will make progress.

Linux kernel Analysis Job one

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.