How the computer works

Source: Internet
Author: User

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

Related Article

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.