Patent · US Active

Method and apparatus for reusable and relative indexed register resource allocation in function calls

US11188315B1 · kind B1 · utility

1Cited by
1References
17Claims
0Family size

Assignee

Inventors

Key dates

Filing dateSep 4, 2020
Grant dateNov 30, 2021
Priority date
Expiry dateSep 4, 2040

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F8/4441
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

The disclosed systems, apparatuses and methods are directed to optimizing by a compiler register resource allocation for functions of a module, using a Register File comprising a limited number of registers. After performing interprocedural analysis in the module, the compiler computes the number of registers used by each function, and compiles the function to final machine code, except at callsites where a call is detected to be made to another function. At each callsite and for each called function, the compiler expands call instructions to final machine code after computing and setting a relative index to be used by a called function for running in an available part of the Register File. The relative index optimizes register resource allocation by minimizing the number of spilled registers before a function is called.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.