发明名称 Reducing overhead in loading constants
摘要 An overhead reduction system creates a plurality of candidates of constants to be stored in one or more constant registers based on constants used in the program code of the current compilation scope, estimates, for each of the candidates of constants, an effect of overhead reduction by generation of the constant used in the program code by using the candidate of constant, determines a base constant to be loaded on the constant registers based on the estimation result, loads the base constant on the constant registers at an entry point of the program code, and generates a code for generating the constants used in the program code by using values of the constant registers.
申请公布号 US9189234(B2) 申请公布日期 2015.11.17
申请号 US201414446567 申请日期 2014.07.30
申请人 GLOBALFOUNDRIES INC. 发明人 Inoue Hiroshi
分类号 G06F9/45;G06F9/30 主分类号 G06F9/45
代理机构 Scully, Scott, Murphy & Presser, P.C. 代理人 Scully, Scott, Murphy & Presser, P.C.
主权项 1. A method of reducing overhead in loading constants of a processor device, the method comprising the steps of: (a) preparing, by the processor device, one or more registers (hereinafter, called “constant registers”) for loading constants; (b) creating, by the processor device, a plurality of candidates of constants to be stored in the one or more constant registers based on constants used in a program code of a current compilation scope; (c) estimating, by the processor device, an effect of the overhead reduction by generation of a constant used in the program code by using a candidate of constant, for each of the plurality of candidates of constants; (d) determining, by the processor device, base constants to be loaded on the one or more constant registers based on the effect estimated for each of the plurality of candidates of constants; and (e) loading, by the processor device, for the program code, the base constants on the one or more constant registers at an entry point of the program code and using values of the constant registers to generate codes for generating constants used in the program code.
地址 Grand Cayman KY