PC value = Current program execution Location +8__ storage

Source: Internet
Author: User

The ARM processor uses an assembly line to increase the speed of the processor's instruction flow, allowing several operations to be performed simultaneously, and making the operations between the processing and memory systems smoother and more continuous, providing 0.9mips/mhz instruction execution speed. The PC represents the program counter, the pipeline uses three stages, so the instruction is divided into three stages:

1. Refer to (Load an instruction from memory);

2. Decoding (identifying the instructions that will be executed);

3. Execute (Process instruction and write the result back to register).

The R15 (PC) always points to the "fetching" instruction, not to the "executing" instruction or to the instruction being "decoded." Generally speaking, people habitually agree that the "executing instruction as reference point" is called the current first instruction, so the PC always points to the third instruction. When arm state, each instruction is 4 bytes long, so the PC always points to the instruction address plus 8 byte address, namely: PC value = Current program execution position +8;

Cycle 1 Cycles 2 cycles 3 weeks 4 weeks 5 Cycle 6

PC-8 Fetch and decode execution

PC-4 Fetch and decode execution

pc                                                    Reference               decoding                 Execute

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.