影子寄存器用于减少中断延迟。
Arm有15个寄存器,那么这些影子寄存器存放在哪里呢?
术语“影子寄存器”与存储寄存器和非存储寄存器相关吗?
最佳答案
ARM 技术文档没有具体提及shadow,因此很难将其与 ARM 联系起来。
但是从 comparision of ARM to MIPS architecture观点:
block 引用>The MIPS architecture supports the implementation of multiple “shadow” banks of registers. This allows more efficient context-switching operations but the fact that this feature is not commonly or consistently implemented on MIPS-based devices makes it of limited use. Consequently, few compilers or operating systems make use of it.
在这种情况下,“影子寄存器”更像是一种独立的东西 - 它们可以用于很多事情,而存储寄存器则用于明确分离的执行模式。
关于assembly - 影子寄存器——arm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13784783/