发明名称 Binary file for computer program having multiple executable code variants for a function that are executable on a same processor architecture
摘要 Source code for a function of a computer program is compiled by compilers to generate executable code variants for the function according to different optimization approaches. Each executable code variant is executable on a same processor architecture. A binary file for the computer program is constructed that includes each executable code variant. At runtime of the binary file, one of the executable code variants is selected for the function. The selected executable code variant is used during execution of the computer program, until execution is halted.
申请公布号 US9594559(B2) 申请公布日期 2017.03.14
申请号 US201514591721 申请日期 2015.01.07
申请人 International Business Machines Corporation 发明人 Fontenot Nathan;Gunter Fionnuala G.;Strosaker Michael T.;Wilson George C.
分类号 G06F9/45;G06F9/30;G06F9/445 主分类号 G06F9/45
代理机构 代理人 Bennett Steven
主权项 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.
地址 Armonk NY US