Homework 3.66

Source: Internet
Author: User

By the question hypothesis: cnt=a;

struct a_struct{

int idx;

int x[b];

}

C code can be:

n=*bp+* (bp+4+4a (b+1))

Ap=bp+4+4 (b+1) I

ap->idx=* (bp+4+4 (b+1) i)

Ap->x[ap->idx]=bp+4+4 (b+1) i+4+4 * (bp+4+4 (b+1) i) =n

Another disassembly code can be:

5 I->eax

6 BP->ECX

7 28I->EBX

8 8i->edx

9 7i->edx

Ten * (28i+bp+4) +7i->edx

* (bp+200)->eax

*bp+* (bp+200)->eax

eax->* (edx 4+bp+8)

It is easy to see that the disassembly code line 12 corresponds to the C code line 9th, the disassembly code 13 lines corresponding to the C code 11 lines.

Therefore, the comprehensive can be:

4A (b+1) +4=200 and 4 (b+1) =28

So a=7,b=6.

Homework 3.66

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.