摘要 |
A branch instruction optimizing process system which performs optimization of code length of branch instruction for branching between modules includes a locating portion for locating a plurality of segments forming object modules within address space, and optimization processing portion for performing optimization of branch instruction per segment on the basis of a re-location information. The optimization processing portion includes instruction judging portion for making judgement of branch instruction, code variation amount calculating portion for calculating the code variation amount between the branch instruction and a jumping label, distance calculating portion for calculating a distance between the branch instruction and the label, instruction determining portion for determining modification of the code length of branch instruction, address correction portion for correcting address depending upon variation of the code length of the determined branch instruction, segment correction portion for correcting the segment size depending upon variation of the code length of the branch instruction, and the locating portion re-locating all segments in the address space every time the optimization process of branch instruction with respect to one segment by the optimization means.
|