Invention Grant
- Patent Title: Generating code for function calls that use multiple addressing modes
-
Application No.: US16175985Application Date: 2018-10-31
-
Publication No.: US10671362B2Publication Date: 2020-06-02
- Inventor: William J. Schmidt , Ulrich Weigand , Alan David Modra
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Martin & Associates, LLC
- Agent Derek P. Martin
- Main IPC: G06F8/41
- IPC: G06F8/41

Abstract:
A compiler and linker include multiple addressing mode resolvers that generate code to resolve a plurality of function calls that use different addressing modes. A first addressing mode is defined where a first address for first data is specified as an offset from a base pointer. A second, relative addressing mode is defined where a second address for second data is specified as an offset from an address of an instruction that references the second data. The generated code assures correct operation when functions with different addressing modes are included in the computer program. The generated code preserves a base pointer when executing a function that uses relative addressing, when needed. The compiler inserts one or more relocation markers that trigger certain functions in the linker. A linker resolves the relocation markers inserted by the compiler, and generates code, when needed, that handles a mismatch between addressing modes.
Public/Granted literature
- US20200133647A1 GENERATING CODE FOR FUNCTION CALLS THAT USE MULTIPLE ADDRESSING MODES Public/Granted day:2020-04-30
Information query