×

Method and apparatus for profile-based reordering of program portions in a computer program

  • US 5,950,009 A
  • Filed: 03/10/1997
  • Issued: 09/07/1999
  • Est. Priority Date: 03/10/1997
  • Status: Expired due to Fees
First Claim
Patent Images

1. An apparatus comprising:

  • at least one processor;

    a memory coupled to the at least one processor;

    a computer program residing in the memory comprising a plurality of portions joined by a plurality of program paths;

    profile data residing in the memory representing the execution frequency of at least one of the plurality of program paths within the computer program;

    a reordering mechanism residing in the memory and executed by the at least one processor for determining an order for the plurality of portions of the computer program by constructing a plurality of traces, each trace comprising a possible execution path along the plurality of program paths through at least one of the plurality of portions, the reordering mechanism placing the at least one portion in the trace in an order determined by (1) the profile data and (2) at least one reordering method that does not necessarily add to the trace any predecessor portion to the at least one portion in the trace when at least one predecessor portion exists, and that does not necessarily add to the trace any successor portion to the at least one portion in the trace when at least one successor portion exists.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×