Mechanism for re-writing an executable having mixed code and data
AssigneeCompaq Computer Corporation
InventorsPaul Geoffrey Lowney, David William Goodwin, Robert Cohn
Life of this patent
Estimating the term…
Loading patent…
AssigneeCompaq Computer Corporation
InventorsPaul Geoffrey Lowney, David William Goodwin, Robert Cohn
Estimating the term…
A method for permitting software optimization tools, software instrumenting tools and other analysis tools to re-write executables having mixed instructions and data uses a data structure having an entry for each multi-bit word in an executable file. Each entry of the data structure includes a number of flags that are set to identify the type of the multi-bit word in the associated line of the executable file. The types include instruction, data and unclassified. Each entry also includes a flag that indicates that the multi-bit word should not be optimized and a flag indicating that the multi-bit word is a problem branch. The no-optimize and problem branch flags may be used to identify multi-bit words that may be either branch instructions or data, and to ensure that such multi-bit words are not affected by optimization or other rewriting of the executable. In addition, a problem fall through flag is provided to maintain program flow for possible fall through code segments.
A method for re-writing an executable comprising the steps of:
The method according to step 3, wherein the step of analyzing includes the step of analyzing the plurality of words to identify instructions by:
The method according to step 4 further comprising the step of:
The method according to step 4 further comprising the step of:
A computer readable medium having a data structure stored thereon, the data structure comprising a plurality of entries corresponding to a plurality of words in an executable file, with each entry of the data structure further comprising:
Dependencies are inferred from the claim text.