×

System for measuring program execution by replacing an executable instruction with interrupt causing instruction

  • US 4,910,663 A
  • Filed: 07/10/1987
  • Issued: 03/20/1990
  • Est. Priority Date: 07/10/1987
  • Status: Expired due to Term
First Claim
Patent Images

1. In a computer system having a memory for storing a computer program and a processor for executing the stored computer program, said computer system having at least one an interrupt-causing instruction and the computer program comprising a first set of executable instructions stored in said memory, a method for determining which ones of a subset of said first set of executable instructions are not executed when the program is executed, comprising the steps of:

  • making a program copy from said stored computer program, said program copy comprising a second set of executable instructions identical to said first set of executable instructions;

    storing said program copy in said memory;

    modifying the stored program copy by replacing each one of a subset of said second set of executable instructions in said program copy with an interrupt-causing instruction;

    initiating the execution of the modified program copy;

    in response to the execution of each one of the interrupt-causing instructions in the program copy, performing the steps of;

    locating in said first set of executable instructions an instruction identical to the instruction replaced by the executed one of the interrupt-causing instructions;

    restoring the replaced instruction by writing said located instruction in place of the executed interrupt-causing instruction in said program copy; and

    executing the restored instruction.

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