In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the ARM instruction jump range, has a certain reference value, interested friends can refer to, I hope you read this article after a lot of gains, the following let Xiaobian take you to understand.
ARM instruction jump range
We know that ARM jump instructions (B) are range-limited (±32MB), but in many cases there is no guarantee that all exception handling functions are located within 32MB of the vector table, requiring long jumps greater than 32MB, and because of vector table space constraints can only be completed by one instruction. This can be done in two ways.
a) Immediate Jump (a) MOV PC, #imme_value
Assign the destination address directly to the PC register.
However, this instruction is limited by format and cannot handle arbitrary immediate numbers; it is legal only if the immediate number can be represented as an 8-bit value obtained by rotating right by even digits. For example:
MOV PC,#0x3000000;//is legal because 0x3000000 can be obtained by rotating 0x03 to the right by 4 bits. MOV PC, #30003000 ;//is an illegal command. b) Relative address jump (b) LDR PC, [PC+offset]
The target address is stored in a suitable address space, and then the 32-bit data on this memory unit is transferred to the PC to realize the jump.
This method does not require the destination address value, and can be any valid address. But the memory location storing the target address must be within ±4KB of the current instruction.
Note that when calculating offset values referenced in instructions, consider the effect of instruction prefetching on PC values in the processor pipeline.
Thank you for reading this article carefully. I hope that the article "How big is the ARM instruction jump range" shared by Xiaobian will help everyone. At the same time, I hope everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.