The conduct of computer work

Source: Internet
Author: User

Through the first week of Learning: "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000

How does a computer work? (Zhu Hengzhi)

First: Understand what a von Neumann structure is.

1) The use of a single processing unit to complete the calculation, storage and communication work.

2) The storage unit is a fixed-length linear organization.

3) The unit of storage space is addressed directly.

4) Use the low-level machine language, instruction through the operation code to complete the simple operation.

5) centralized sequential control of the calculations.

6) The computer hardware system is composed of five components of the arithmetic, memory, controller, input device and output device, and stipulates their basic functions.

7) Use binary form to represent data and instructions.

8) The program and data must be loaded into the main memory from the external memory when executing the program and processing the data, and then the computer can automatically remove the instruction from the memory and execute it when it is working.

Next, the Experiment section:(The following command is for the lab building 64-bit Linux virtual machine environment, 32-bit Linux environment may be slightly different)

Use

    1. Gcc–s–o main.s Main.c-m32

Commands compiled into assembly code

  1. int g (int x)
  2. {
  3. return x + 3;
  4. }
  5. int f (int x)
  6. {
  7. return g (x);
  8. }
  9. int main (void)
  10. {
  11. return F (5) + 1;
  12. }

Experiment:

The conduct of computer work

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.