How the computer works

Source: Internet
Author: User

Experimental section (the following command is available for 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

The commands are compiled into assembly code, and the numbers in the following code should be modified to avoid being identical to others.

  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 (8) + 1;
  12. }

2) According to the knowledge of this week to analyze the work process of compiling code, write a signed blog, and in the blog post "real name (and the name of the final application certificate must be consistent) + Original works reproduced please specify the source +" Linux kernel Analysis "MOOC Course/http mooc.study.163.com/course/ustc-1000029000 ", the specific requirements of the blog content are as follows:

    • The topic is self-prepared, and the content revolves around how the computer works;

    • You need to use an experiment in your blog

    • Blog content requires careful analysis of stack changes during the work of the assembler code

    • The summary section needs to clarify its understanding of how the computer works.

3) Please submit the blog post URL to the NetEase cloud classroom Mooc Platform, edited into a link can be directly clicked open.

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.