×

Method and apparatus for enabling a compiler to reduce cache misses by performing pre-fetches in the event of context switch

  • US 6,845,501 B2
  • Filed: 07/27/2001
  • Issued: 01/18/2005
  • Est. Priority Date: 07/27/2001
  • Status: Expired due to Term
First Claim
Patent Images

1. An apparatus for reducing cache memory misses in a computer that performs context switches between at least a first context and a second context, the apparatus comprising:

  • a first logic, the first logic being configured to identify at least a first prefetch region in a first memory element during compilation of a computer program by the computer;

    a second logic, the second logic being configured to identify critical memory references within the first prefetch region during compilation, the critical memory references within the first prefetch region corresponding to data that may be needed in cache memory if a context switch occurs from a process or thread associated with the second context to a process or thread associated with the first context during program execution by the computer; and

    a third logic, the third logic being configured to prefetch data associated with the identified critical memory references and to store the prefetched data in cache memory prior to a process or thread associated with the first context is resumed when a switch from the second context to the first context occurs during program execution.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×