Linux kernel Analysis first week study summary-How the computer works
Zhang Yi (Original works reproduced please specify the source)
"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000
I. working process of assembly Code
1. Experimental process
int A (int x) { return2int b (int x) { return int main (void) { return B (51 ;}
The assembly code is as follows:
2. Code Analysis
Second, the process of computer work
The general process of the work is: the user will prepare the program through the input device into the computer, stored in the memory, through the input device to the computer issued a command to execute the program. Therefore, under the control of the controller, the computer will work according to the program requirements automatically. When the computer is working, the controller takes out an instruction program from memory, analyzes what kind of operation the instruction requires the computer to perform, then executes the specified operation, executes an instruction, then takes the next instruction from the memory, and then analyzes and executes it. This is repeated until the program finishes executing.
Linux kernel Analysis first week study summary-How the computer works