Patent ID: 7856618

Claim:
A computer program product for adaptively generating code for a computer program, comprising: a plurality of executable instructions recorded on a non-transitory computer-readable recordable media, wherein the executable instructions, when executed by at least one processor of a digital computing device, cause the digital computing device to perform the steps of: compiling the computer program based on a creation target model specified for initial creation of the computer program, wherein the step of compiling the computer program includes translating source code into an intermediate representation (IR) of the computer program in a front-end compiler and transforming the intermediate representation (IR) of the computer program into machine code in a back-end compiler; producing a feature set of the computer program by recording features that are both available on the creation target model and used in the machine code generated in the back-end compiler, wherein the feature set of the computer program is produced in the back-end compiler; saving the compiled computer program and the feature set of the computer program, wherein the step of saving the compiled computer program and the feature set of the computer program includes encapsulating the intermediate representation (IR) of the computer program, wherein the saving step includes the step of saving the feature set of the computer program in a format that includes a plurality of fields, each corresponding to a particular one of a plurality of optional hardware features and each having a value indicative of use or non-use of that particular feature in the machine code.