A method, computer program product, and a data processing system for
generating a single object file from which a plurality of per-processor
architecture executables may be produced. Source code includes
instructions that are associated with a plurality of processor
architectures and a plurality of instruction sets each associated with
one of the plurality of processor architectures. The source code is
compiled into an object file that includes common text and data
associated with the plurality of processor architectures and a plurality
of processor-specific data and text sets. The object file may then be
linked by a processor of one of the plurality of processor architectures
to produce an executable that is optimized for a plurality of processor
architectures.