×

GENERATING CODE FOR FUNCTION CALLS THAT USE MULTIPLE ADDRESSING MODES

  • US 20200133648A1
  • Filed: 10/31/2018
  • Published: 04/30/2020
  • Est. Priority Date: 10/31/2018
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus comprising:

  • at least one processor;

    a memory coupled to the at least one processor; and

    a linker residing in the memory and executed by the at least one processor, the linker comprising;

    a multiple addressing mode resolver that generates code to resolve a plurality of function calls in a computer program, wherein at least one of the plurality of function calls has a caller instruction that references a callee function, wherein the plurality of function calls includes a first function call that comprises code that uses a first addressing mode where a first address for first data is specified as an offset from a base pointer, where the base pointer is stored in a fixed processor register, wherein the plurality of function calls includes a second function call that comprises code that uses a relative addressing mode where a second address for second data is specified as an offset from an address of an instruction that references the second data, wherein the relative addressing mode does not preserve the base pointer stored in the fixed processor register.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×