Linux kernel Design first week learn to summarize how computers work

Source: Internet
Author: User

Beijing Institute of Electronic Technology 20135310 Chen Chaojan

First, video notes

Second, experiment: Compile a simple C program, analyze its assembly instruction execution process

  1. 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

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.