×

Method and apparatus for performing prefetching at the critical section level

  • US 6,427,235 B1
  • Filed: 11/05/1999
  • Issued: 07/30/2002
  • Est. Priority Date: 11/05/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for compiling source code into executable code that performs prefetching for memory operations within critical sections of code that are subject to mutual exclusion, comprising:

  • compiling a source code module containing programming language instructions into an executable code module containing instructions suitable for execution by a processor;

    identifying a critical section within the executable code module by identifying a region of code between a mutual exclusion lock operation and a mutual exclusion unlock operation wherein identifying the critical section of code involves;

    using a first macro to perform the mutual exclusion lock operation, wherein the first macro additionally activates prefetching; and

    , using a second macro to perform the mutual exclusion unlock operation, wherein the second macro additionally deactivates prefetching, and wherein the second macro does not deactivate prefetching if the mutual exclusion unlock operation is nested within another critical section bounded by an additional mutual exclusion lock operation and an additional mutual exclusion unlock operation; and

    scheduling explicit prefetch instructions into the executable code module in advance of associated memory operations located within the critical section, so that prefetch operations are performed for memory operations within the critical section.

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