摘要 |
PURPOSE: A cache memory management method is provided to make a cache empty if a processor fails to make an initial access to a cache memory and to previously eliminate a cause to write back data to a main memory when an execution of a specific function is finished so that it can prevent meaningless garbage data from being transmitted between the main memory and the cache memory. CONSTITUTION: The method comprises several steps. A processor reads an instruction(S1). In a case that the read instruction is for starting a new function, namely needs allocating a stack(S2), initial access management bits corresponding to an allocated stack area are initialized(S3). In a case that the read instruction is for restoring the stack(S4), dirty bits within a cache memory, corresponding to the restored stack, are set to zeros(S5). It is determined whether the read instruction is for writing an address within the stack(S6). In a case that the read instruction is for writing an address within the stack, there exists no block for the address within the cache memory and there is no case that the address is referred to, the instruction is not copied to the main memory and the initial access bits for the block are set to ones.
|