1. A method comprising: identifying a plurality of code segments of a program each having a same identifier, said identifying further comprising identifying a plurality of functions each having a same function name and each being customized to a different processor type; and generating object code for the program, including generating a plurality of sections each corresponding to one of said plurality of code segments, and generating a control section that causes a selected one of said plurality of sections to be called during execution of said object code in accordance with an executing processor's processor type.