Patents
US 5,778,232 A#4722570 Most CitedExpiredUnited States (USPTO)Utility

Automatic compiler restructuring of COBOL programs into a proc per paragraph model

18Forward Citations (#4722570 Global)
0.6/yrCitation Velocity (#12253017 Global)
7.44Citation PageRank (#1733892 Global)
6Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A compiler for compiling and optimizing a COBOL program. The invention is embodied in a front end that reads the COBOL program and generates an intermediate representation that can be optimized by later stages of the compiler. After reading the COBOL program, the compiler first coalesces the paragraphs into procedures. If a paragraph's preceding paragraph is not a potential exit point, then the paragraphs are coalesced. Next, the basic block counts of the procedures are estimated. If a basic block count exceeds a predetermined limit, then basic blocks are sliced from the procedure, placed into a new procedure, and a call to the new procedure is inserted into the sliced procedure. Finally, the compiler generates a super-procedure from the sliced procedures. The super-procedure implements the control flow of the original COBOL program. Because the resulting program behavior resembles that of a C, C++, or Fortran program, the compiler can use C, C++, or Fortran compiler technology to optimize the COBOL program.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 18.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A compiler adapted for execution on a computer system having a memory, the compiler comprising: means executing on the computer system, for reading a source program from the memory, the source program comprised of a plurality of paragraphs, each paragraph having a plurality of instructions, the instructions defining a control flow; means for coalescing the plurality of paragraphs to produce coalesced procedures; means for slicing instructions from the coalesced procedures to produce sliced procedures; means for generating a super-proc from the sliced procedures, wherein a call to the sup

  2. Claim 2Depends on #1

    The compiler of claim 1, wherein the means for coalescing comprises: means for determining whether a paragraph is a potential return point; means for coalescing the paragraph into a first current pro

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • "Incremental Global Optimization for Faster Recoupilations", Pollock L.L. et al., Int'l Comference on Computer Languages, pp. 281-290, Mar. 1990.
  • "Interprocedural Analysis vs. Procedure Integration", Richardson S. et al., Information Processing Letters, v32, n3, pp. 137-142, Aug. 1989.
  • "Object -Oriented COBOL Recycling", Sneed H. M., Proceedings of the WCRE '96, pp. 169-178, Nov. 1996.
  • "Region -Based Compilation: An Introduction and Motivation", Hank R. E. et al., Proceedings of the MICRO-28, pp. 158-168, Dec. 1995.
  • "The Influence of Language Semantics on Program Slicing", Hwang J. C. et al., Proc. Int'l Conference on Comp. Languages, pp. 120-127, Oct. 1988.