发明名称 Compiling optimization of an application and compiler thereof
摘要 One aspect is a method for compiling optimization of an application and a compiler thereof. The method includes determining could-be-constant variables in source code of the application. Constant variables designated as final constant variables and values of the constant variables are obtained using the could-be-constant variables. The application is compiled using the constant variables and the values of the constant variables.
申请公布号 US9223552(B2) 申请公布日期 2015.12.29
申请号 US201414259599 申请日期 2014.04.23
申请人 International Business Machines Corporation 发明人 Ji Jin Song;Jiang Jian;Lin Ke Wen;Liu Zhi Peng
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Choi Edward
主权项 1. A method for compiling optimization of an application, comprising: determining could-be-constant variables in source code of the application, the could-be-constant variables each having a uniquely determined constant value during run time, wherein the determining comprises: analyzing the source code to obtain potential could-be-constant variables;removing the potential could-be-constant variables that are assigned multiple times from the potential could-be-constant variables by counting assignment operations of the potential could-be-constant variables and removing the potential could-be-constant of which the count of the assignment operations exceeds one, resulting in a list of remaining potential could-be-constant variables;determining affected variables that are affected by external information variables in the source code, the external information variables comprising information received from outside of the application; andselecting matching variables from the remaining potential could-be-constant variables and the affected variables as the could-be-constant variables; obtaining constant variables designated as final constant variables and values of the constant variables using the could-be-constant variables; and compiling the application using the constant variables and the values of the constant variables.
地址 Armonk NY US