发明名称 Compile time evaluation of library functions
摘要 A method and system for evaluating a call to a library function at compile time. A first call included in a program being compiled by a compiler is identified. The first call is a call to a library function included in a pre-defined list of library functions external to the program. The first call includes one or more arguments associated with one or more formal arguments of a library function in the pre-defined list. The identification of the first call includes searching the pre-defined list of library functions for the library function. The arguments are determined to be constants. A second call to the library function is constructed in an optimizer of the compiler. A result of the second call is statically computed in the optimizer by issuing the second call with the constants as arguments. During compile time, the first call is replaced with the result.
申请公布号 US2008046870(A1) 申请公布日期 2008.02.21
申请号 US20060505070 申请日期 2006.08.15
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 NAIR ROHINI;WARD THOMAS JAMES CHRISTOPHER
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址