发明名称 Method for enabling compilation of a Cobol source program utilizing a two-stage compilation process, the Cobol source program including a mix of Cobol, C++ or JAVA statements, and optional OpenMP directives
摘要 A method, apparatus, and program product are disclosed for carrying out the compilation of an original Cobol program that includes a mix of Cobol, C++ or JAVA and optional OpenMP directives in a single source program file so as to provide improved performance during execution of the program and improved convenience and features in programming. The approach or method includes performing a compilation (or translation) step utilizing a first compiler or translating program which is a is a specialized compiler/translator that takes as input a Cobol source program including a further provision for the inclusion of C/C++ program statements and OpenMP statements, and produces as output an intermediate computer program, the intermediate program that is entirely in C or C++, the intermediate program being intended for further compilation by an existing selected second compiler, the second compiler being an optimizing compiler that provides support for parallelism for the programs described in the C/C++ programming languages.
申请公布号 US8930925(B2) 申请公布日期 2015.01.06
申请号 US201213730123 申请日期 2012.12.28
申请人 发明人 Guenthner Russell Wayne;Kneisel Todd Bradley;Wigchert Albert Henry John;Eckard Clinton B.
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人 Guenthner Russell W.
主权项 1. A method of generating on a computer system, an object program file or executable from an original high level input source program stored in one or more source program files on non-transitory storage media accessible by the computer system, the program executable, when executed, functioning in a manner described by the original high level input source program, the method comprising the steps of: A) accessing the source program files and reading the original high level source program, the original high level source program comprising a mix of both original high level Cobol source program statements in Cobol programming language and original high level C++ source program statements in C++ programming language, the original input high level Cobol source program statements including original Cobol variable declaration statements describing original Cobol variables using original Cobol variable names and associated Cobol data types and the original Cobol program statements specifying a part of the functionality of the original high level source program, and the original input high level C++ source programming statements describing another part of the functionality of the original high level source program; B) the computer system in a first stage of compilation using an enhanced Cobol compiler/translator performing first compiling/translating of, the original high level input source program and generating as output, an intermediate C++ source program file comprising: 1) a first plurality of output C++ statements, written in the C++ programming language, with functionality being directly related to and specified by the original input high level Cobol source program statements, and, 2) a second plurality of output C++ statements, written in the C++ programming language, with functionality directly related to and specified by the original input high level C++ source program statements, the first and second plurality of output C++ statements being organized in an order directly related to a relative ordering of the original high level Cobol source program statements and the original high level C++ source program statements contained in the original high level source program; C) the computer system in a second stage of compilation using a standard C++ compiler performing a second compiling of, the intermediate C++ source program file output from step B) and generating as output, the object program file or executable that when executed by the computer system functioning in the manner described by the original high level source program.
地址