"Linux kernel Analysis" MOOC course on how computers work from the assembly language perspective

Source: Internet
Author: User

PIRATEZGW Original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000

In fact, this is to deal with the work of the MOOC course, where the environment can not contact the Internet at any time, so submitted are relatively late, nonsense not much to say, into the topic.

First, the operation of the experiment

This is mainly in the Linux environment using VI + GCC to write C program code, and then compiled into assembly code, as shown in

Second, code Analysis

Because of the dynamic linkage of the original assembly code and the symbol table is not removed, so remove them and get the Pure assembly code:

G:pushl%ebpmovl%esp,%ebpmovl8 (%EBP),%eaxaddl$2,%eaxpopl%ebpretf:pushl%ebpmovl%esp,%ebpsubl$4,%espmovl8 (%EBP),% Eaxmovl%eax, (%ESP) Callgleaveretmain:pushl%ebpmovl%esp,%ebpsubl$4,%espmovl$9, (%ESP) callfaddl$1,%eaxleaveret

Now from the register point of view,


"Linux kernel Analysis" MOOC course on how computers work from the assembly language perspective

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.