In ia32, how does one put the program counter value into an integer register?

Source: Internet
Author: User
  1. Call Next
  2. Next:
  3. Pop1%Eax

 

This is an assemblyCodeIn the beginning, it seems strange that the call command does not match ret.

Then we realized that it was not a real process call at all.

 

What is the value of register % eax set?

A: % eax is set to the address of the popl command.

 

Please explain why there is no matching RET command in this call?

A: This is not a real sub-process call, because the control is performed in the same order as the command, and the return value is popped up from the stack.

 

What functions does this code complete?

A: This is Lieutenant General ia32.ProgramThe unique method for placing the value of the counter EIP in the integer register.

 

What is ia32?

A: Intel uses its instruction set as ia32. ia32, short for Intel architecture 32-bit. It indicates the intel32-bit architecture. This processor series is also known as x86.

 

<In-depth understanding of computer systems>

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.