Stack caching systems and methods with an active swapping mechanism
AssigneeMediatek Inc.
InventorChih-Hsing Chu
Life of this patent
Estimating the term…
Abstract
The disclosure defined by the invention described a stack caching system with a swapping mechanism for reducing software resource. The stack caching system utilizes a swap memory with higher access speed to increase the performance of the stack caching system. The stack caching system moves at least one first stack block which is the most frequently accessed stack block by the system from a first memory to the swap memory. Then, the stack caching system controls a pointer originally pointing to the first stack block to point to a corresponding address in the second memory. When the stack caching system accesses the first stack block, the stack caching system is directed to the second memory to access the first stack block.
Claims12
A stack caching method for use in a system comprising a first memory and a second memory, the method comprising:
- profiling the first memory to acquire access frequencies of corresponding stack blocks of the first memory;
- identifying a first stack block from a plurality of stack blocks stored in the first memory based on the profiling result, wherein the first stack block is the most frequently accessed stack block by the system in the first memory;
- suspending the access operation of the first stack block;
- and
- moving the first stack block from the first memory to the second memory with higher access speed;
- wherein after the movement, the first stack block is accessible in the second memory by the system.
A stack caching method for use in a system comprising a first memory and a second memory, the method comprising:
- profiling the first memory to acquire access frequencies of corresponding stack blocks of the first memory;
- identifying a first stack block from a plurality of stack blocks stored in the first memory based on the profiling result, wherein the first stack block includes data containing at least one pointer;
- moving the first stack block from the first memory to the second memory with higher access speed;
- and
- adjusting the pointer originally points to the first stack block to a new address in the second memory.
Dependencies are inferred from the claim text.