Patent ID: 9715377
Date: 2017-07-25
CPC Classifications: G06F

Claim:
1. A computer implemented method for a behavior based code recompilation triggering scheme, the method comprising: determining whether a fingerprint matches an output of software that is currently executing on a processor of a computer system, the fingerprint comprising a representation of a sequence of behavior that occurs in the processor while the software is executing, wherein the fingerprint is selected from the group consisting of a specific branch taken and not taken sequence in a predefined order of branches taken and not taken, and a specific branch prediction hit and miss sequence in a predefined order of branch prediction hits and misses; in response to determining that the fingerprint does not match the output in the software currently executing on the processor, continuing to monitor the software executing on the processor for the fingerprint; and in response to determining that the fingerprint does match the output in the software currently executing on the processor, causing a compiler to perform a recompilation to the software, wherein the recompilation to the software comprises unrolling loops, changing register usage, changing locations of branch instructions, and providing branch hints to improve branch predictions.