摘要 |
A method of compressing programs is provided which allows greater program compression without significantly degrading system performance. The method provides: examining an entire program for sequences of lines of code determining which sequences are identical except for a variation in a predetermined number of Elements designating and saving one uncompressed version of the identified sequences as a specific microroutine; saving the Elements which differentiate the saved sequence from the various nearly identical sequences; and, assembling a version of the program consisting of original lines of code and microcalls. The microcall is a line of code which instructs a processor to implement a previously saved microroutine and provides an indication as to which Elements in the microroutine are to be replaced and where to find the substitute Elements. In a preferred embodiment, the Elements replaced are parameters such as a register values. |