Method for managing a microprocessor stack for saving contextual data
    1.
    发明申请
    Method for managing a microprocessor stack for saving contextual data 有权
    用于管理微处理器堆栈以保存上下文数据的方法

    公开(公告)号:US20040221141A1

    公开(公告)日:2004-11-04

    申请号:US10779855

    申请日:2004-02-17

    CPC classification number: G06F9/30123 G06F9/3004 G06F9/4486 G06F9/461

    Abstract: The present invention relates to a method for managing the stack of a microprocessor comprising a central processing unit and a memory array, the central processing unit comprising registers containing contextual data and a stack pointer, the stack being a zone of the memory array used for saving contextual data upon a switch from a first to a second program. According to the present invention, the method comprises saving contextual data contained in a variable number of registers that varies according to the value of at least one flag stored in a register to be saved. Advantages: optimization of the filling of the stack and of the number of subprograms that can be interleaved.

    Abstract translation: 本发明涉及一种用于管理包括中央处理单元和存储器阵列的微处理器的堆叠的方法,所述中央处理单元包括包含上下文数据的寄存器和堆栈指针,所述堆栈是用于保存的存储器阵列的区域 从第一程序切换到第二程序时的上下文数据。 根据本发明,该方法包括保存包含在根据存储在要保存的寄存器中的至少一个标志的值而变化的可变数目的寄存器中的上下文数据。 优点:优化堆栈的填充以及可以交错的子程序数量。

Patent Agency Ranking