×

Method and apparatus for generating multiple processor-specific code segments in a single executable

  • US 7,367,021 B2
  • Filed: 08/09/2002
  • Issued: 04/29/2008
  • Est. Priority Date: 04/13/1998
  • Status: Expired due to Fees
First Claim
Patent Images

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;

    if so, generating the customized version of object code;

    wherein, in determining, a determination is made whether generating two or more customized versions of object code to execute on two or more types of processors would provide performance advantages over a non-customized version of object code;

    if so, generating the two or more customized versions of object code and a non-customized version of object code; and

    generating a control section that causes a first customized version of object code to be called during execution if the executing processor is a first type, the control section causing a second customized version of object code to be called during execution if the executing processor is a second type, and the control section causing the non-customized version of object code to be called during execution if the executing processor is neither the first or second type.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×