摘要 |
<p>A stack control is assigned at a multi-bit-computer, where one or more memories are present and a part of the memory is called a run time stack. The uppermost part of the stack is implemented as stack register set and the recent or the most recent stack frames (generations) are held in this register set. The memory address of the first register to be stored is hold in a memory pointer, which is incremented when stack registers are saved to memory and is decremented when stack registers are restored from memory. According to the invention, there is a variable stack frame length, whereat the stack pointer is ommitted. Thus, the frame pointer can be substantially shorter and is being implemented as part of the status word in the status register. Therefore, a whole cycle and a whole register for storing the frame pointer is saved. This renders a simple control and provides one additional register per frame for the user program. The saving over stack controls according to the state of the art is 33% of controlled registers per stack frame.</p> |