Patent ID: 7987458

Claim:
A computer-implemented method of optimizing object code modules, comprising: analyzing a plurality of program modules written in a high-level language, each program module having a unique entry point and including one or more source code files and common resource objects based on dependence on identical common resource objects, to detect repetition of common resource objects in different program modules of the plurality of program modules; merging the plurality of program modules into a single program module written in the high-level language containing a copy of the source code files of each program module and a single copy of common resource object unique to each module, and a single copy of the common resource objects shared by two or more program modules of the plurality of program modules; generating a single entry point for the single program module; and inserting into the single program module a dispatcher file to call to all of the copies of the source code files and common resource objects contained in the single program module using the single entry point.