A parameterization
instruction selection method, applied to optimizing a compilation process executed by a
compiler. In the parameterization
instruction selection method, during compiling, corresponding
machine instruction sets are pre-generated for instructions in a code to be compiled, and one or more corresponding
machine instructions that can be selected by each instruction in the code during compiling are indicated on the basis of the
machine instruction sets, so that a
compiler does not select a default
machine instruction for the instruction in the code any more, and the
compiler is guided to select different
machine instruction combinations during compiling, so as to obtain a plurality of different target files; finally, a target file having optimal execution performance is selected by executing the plurality of target files. Thus, the flexibility of an
instruction selection process is improved, and the target file having higher execution performance is obtained by means of compiling.