Invention Grant
- Patent Title: Reduced instructions to generate global variable addresses
-
Application No.: US15865148Application Date: 2018-01-08
-
Publication No.: US11321236B2Publication Date: 2022-05-03
- Inventor: Todd Edward Sharpe , Ten Tzen
- Applicant: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Applicant Address: US WA Redmond
- Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC.
- Current Assignee Address: US WA Redmond
- Main IPC: G06F12/1009
- IPC: G06F12/1009 ; G06F8/41 ; G06F12/02

Abstract:
In order to reduce the number of instructions that the compiler generates to load the address of a global variable into a register, the compiler uses a technique that analyzes the global variables used in each function in order to estimate which global variables will be located within the same memory page and having a common base address. A base global variable is selected for each function whose address is fully resolved. The address of each subsequent global variable is constructed using an offset relative to the address of the base global variable that is based on the subsequent global variable's position in a global variable order list.
Public/Granted literature
- US20190213139A1 REDUCED INSTRUCTIONS TO GENERATE GLOBAL VARIABLE ADDRESSES Public/Granted day:2019-07-11
Information query
IPC分类: