20135331 literature + Linux kernel Analysis MOOC course
In the NetEase cloud class to learn the first Linux kernel analysis of the course in a total of 9 small video Learning
What is the von Neumann architecture
Is the most basic concept of computer system, the storage program computer (1) from the hardware
(2) from the programmer
CPU identifies what Directive API ABI (interface) assembly instructions
X86 Assembly 16bit AX 32bit EAX
BX EBX
CX ECX
DX EDX
Ebp
Esp
Esi
Register
There are also some assembly instructions MOV instructions and addressing mode push call RET
How the computer works: Connecting the CPU via the bus and the instructions stored in the CPU are all executed by translating the manual language into the machine language and executing the instructions. Therefore, the experiment of understanding the above instruction through experiments is as follows:
Now to analyze the changes in the stack of the above code:
When executing an instruction, esp% will press down a 4 of its own after executing the main function and then calling F and then calling G and then returning to the main pointer changes are similar to note that RET is the next instruction returned to call the final eax% register value is 12
How the computer works