发明名称 Method and apparatus providing COBOL decimal type arithmetic functions with improved performance
摘要 A method and apparatus is disclosed providing an improvement in performance for arithmetic computations by a computer system for calculations which include decimal numeric variables. The improvement in at least one embodiment includes use of a special compiler in cooperation with a special decimal numeric subroutine library. The compiler provides comparative alignment information based upon comparing alignments of a plurality of decimal variables. The decimal subroutine library can then provide improved performance at run time by utilizing the information compared by the compiler at compiler time rather than making those computations repeatedly at run time.
申请公布号 US8856759(B2) 申请公布日期 2014.10.07
申请号 US201012658017 申请日期 2010.02.01
申请人 Bull HN Information Systems Inc. 发明人 Guenthner Russell W.;Eckard Clinton B.
分类号 G06F9/44;G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项 1. A method of generating an executable computer program, the executable computer program including instructions for invoking decimal numeric computations during its execution on a computer system, the executable computer program generated by compilation of a computer program source file; the source file including: a) declarations of decimal numeric variables specifying declared attributes of each decimal numeric variable and, b) description of decimal arithmetic operations between first and second of the decimal numeric variables; the method comprising the steps of: A) reading, with a special compiler, the computer program source file; B) generating, by the special compiler, the executable computer program including executable instructions which perform a plurality of calls to a special decimal numeric subroutine stored in a memory associated with the computer system for performing decimal arithmetic operations; and C) storing within the executable computer program, an argument for each of the plurality of the calls to the special decimal numeric subroutine, each of the argument lists containing at least one argument that directly provides compiler generated comparative alignment information, the comparative alignment information determined by the special compiler at compile time based upon a comparison of the declared attributes of the first and second decimal numeric variables, for enabling the special decimal numeric subroutine to perform a decimal numeric operation upon the first and second decimal numeric variables utilizing said comparative alignment information to directly align at run time, the first decimal numeric variable with the second decimal variable for reducing time spent in performing the decimal numeric computations during execution of the executable program; wherein the compiler generated comparative alignment information is based upon a comparison of lengths of the first and second decimal numeric variables the comparative alignment information determined during compile time.
地址 Chelmsford MA US