METHOD AND APPARATUS FOR GENERATING MULTIPLE PROCESSOR- SPECIFIC CODE SEGMENTS IN A SINGLE EXECUTABLE
First Claim
1. A method comprising:
- analyzing a source code segment that is to be compiled for execution by any one of a plurality of types of processors;
determining whether generating a customized version of object code for the source code segment to execute on a particular one of the plurality of types of processors would provide a performance advantage over generating a non-customized version of object code; and
if so, generating the customized version of object code.
0 Assignments
0 Petitions
Accused Products
Abstract
A computer-implemented method analyzes a source code segment which is to be compiled for execution by any one of several different processor types. The method determines whether a performance advantage would be achieved by generating a customized version of object code that can be executed by one of the processor types compared with generating a non-customized version. If a performance advantage would be achieved, the method generates at least one customized object code version and a non-customized version for the source code segment, and it generates a control section that causes one of the object code versions to be called during execution of the object code in accordance with an executing processor'"'"'s processor type. If no performance advantage would be achieved, the method generates a non-customized version of the object code that can be executed by any of the different processor types.
-
Citations
25 Claims
-
1. A method comprising:
-
analyzing a source code segment that is to be compiled for execution by any one of a plurality of types of processors;
determining whether generating a customized version of object code for the source code segment to execute on a particular one of the plurality of types of processors would provide a performance advantage over generating a non-customized version of object code; and
if so, generating the customized version of object code. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system comprising:
-
a bus coupling elements of the system;
a memory coupled to the bus to store instructions; and
a processor coupled to the bus, the processor to execute instructions to perform operations comprising;
analyzing a source code segment that is to be compiled for execution by any one of a plurality of types of processors;
determining whether generating a customized version of object code for the source code segment to execute on a particular one of the plurality of types of processors would provide a performance advantage over generating a non-customized version of object code; and
if so, generating the customized version of object code. - View Dependent Claims (8, 9)
-
-
10. A processor to execute a compiler program to perform operations comprising:
-
analyzing a source code segment that is to be compiled for execution by any one of a plurality of types of processors;
determining whether generating a customized version of object code for the source code segment to execute on a particular one of the plurality of types of processors would provide a performance advantage over generating a non-customized version of object code; and
if so, generating the customized version of object code. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. An article comprising a computer-accessible medium having associated instructions, wherein the instructions, when accessed, result in a machine performing a method comprising:
-
analyzing a source code segment that is to be compiled for execution by any one of a plurality of types of processors;
determining whether generating a customized version of object code for the source code segment to execute on a particular one of the plurality of types of processors would provide a performance advantage over generating a non-customized version of object code; and
if so, generating the customized version of object code. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25)
-
Specification