1. A computer-implemented method for optimizing an executable computer program that occupies a first address space and having address-bridging code segments, comprising: identifying address-bridging code segments, target code segments referenced by the address-bridging segments, and calling code segments that reference the address-bridging segments during execution of the program; allocating a second address space; relocating the calling code segments and the target code segments to the second address space; replacing references to the address-bridging code segments with references to the target code segments in the second address space; and for references to the calling code segments in the first address space, directing control to the calling code segments in the second address space.