Patent ID: 9594559
Date: 2017-03-14
CPC Classifications: G06F

Claim:
1. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising: providing source code for a function of a computer program to a plurality of compilers, each compiler compiling the source code for the function to an executable code variant for the function according to a different optimization approach that is optimized to a particular workload characteristic on which the function is operable, the executable code variant generated by each compiler executable on a same processor architecture, a computing device having a target processor having the same processor architecture able to execute the executable code variant generated by each compiler; receiving from the compilers the executable code variants generated by the compilers; constructing a binary file for the computer program including the executable code variant for the function generated by each compiler, wherein at a particular runtime of the binary file on the target processor having the same processor architecture, one of the executable code variants is selected for utilization during the particular runtime based on a characteristic of a workload on which the function is to operate, the target processor selecting different of the executable code variants for the function when executing a computer program in relation to workloads having characteristics; and storing the binary file on a storage device for subsequent transmission to a computing device including the target processor.