Patent ID: 9235391
Filing Date: 2016-01-12
CPC Classification: G06F

Claim Text:
1. A method for optimizing software, including a plurality of modules which include at least one controllable module, the method comprising: determining a shared symbol defined by the at least one controllable module, the shared symbol being a symbol used by two or more modules of the software; generating a symbol use file indicating the shared symbol defined by the at least one controllable module; and rebuilding the software based on the symbol use file such that a symbol table in a controllable module of the rebuilt software only contains the shared symbol indicated in the symbol use file, wherein the rebuilding the software includes: re-compiling a source file of each controllable module in the at least one controllable module to generate an object file in which a symbol in the each controllable module, other than the shared symbol indicated in the symbol use file, is provided with an access mode quicker than that of the shared symbol; and re-linking the object file of the each controllable module to generate a controllable module in the rebuilt software which corresponds to the each controllable module, where the symbol table in the corresponding controllable module only contains the shared symbol indicated in the symbol use file.