Understanding of computer working process

Source: Internet
Author: User

Zhu Shushu + Original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000

Through the video learning, realize that the process of computer work and we read the use of high-level language coding process is basically consistent, but the computer does not recognize high-level language, only the language like assembly language, binary code and other low-class languages, which understand that the assembly language is actually a symbolic representation of binary code,   Assembly language is closer to the underlying technology.   When a computer executes code written in a high-level language, it first has to turn it into an assembly language that the computer can recognize, and then execute the computer instruction by the combination of the CPU and the register. Code written as follows in C: int g (int x) {return x +4;} int f (int x) {return g (x);} int main (void) {return F (4) +2;} With the command gcc-s-o main.s main.c-m32, delete the assembly code line that does not actually function at the beginning of the point, we can get the pure assembly code, such as the link: http://www.shiyanlou.com/u/NTY0MzE5MDQ2MjI3/ As shown in RESULT/1,

Understanding of computer working process

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.