Beijing Institute of Electronic Technology 20135310 Chen Chaojan
First, video notes
Second, experiment: Compile a simple C program, analyze its assembly instruction execution process
- Using experimental environment of laboratory building
2. Source Code MAIN.C
3. Generated assembly code MAIN.S
Three, the assembly instruction execution Process analysis
Iv. summing up and understanding
This part is a basic part of computer working principle, which has been studied repeatedly in the basic course of compiling basic course and information security system design.
The computer can be abstracted as composed of CPU and memory, the instruction and data are stored in memory, and the CPU interprets the execution instruction. The IP register in the CPU points to a piece of code in memory (that is, the instruction), after the CPU executes the instruction that the current IP points to, the IP register is added one instruction, the CPU executes again. The code angle can be understood as having a for structure in the CPU, and looping toward the next instruction.
Linux kernel Design first week learn to summarize how computers work