Patent US4567574A successfully refreshed from Google Patents.
← Back to Patent Explorer
US4567574A Expired / Lapsed US ⏱️ 0.0 years remaining

Optimizing cobol object code instruction path length with respect to perform statements

Assignee: International Business Machines Corp
•
Filing: 1983-03-14
•
Granted: 1986-01-28
•
Expires: 2003-03-14
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A method for optimizing instruction path lengths in a compilation of COBOL source code with reference to PERFORM statements requires a two-step procedure in which the control transfer relationship among the PERFORM statements and associated procedures is characterized as a vector of attributes, and a second step in which the vectors are interpreted for any given PERFORM statement such that, where indicated, the code of the procedure or simplified linkage code will be substituted for the PERFORM statement.

Inventors

  • 👤 Henry Y. Saade
  • 👤 William N. J. Tindall

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-10-28 12:21
CPC Classifications
G; G06; G06F; G06F8/00; G06F8/40; G06F8/41; G06F8/44; G06F8/443

Claims Analysis

Total Claims: 6
Claim 1
Independent Claim 143 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including PERFORM statements and preselected procedures associated therewith, an improvement comprising the steps of: (a) ascertaining the control transfer relationship among PERFORM statements and their associated procedures, and characterizing said ascertained relationship in a vector of attributes for each PERFORM statement including whether an associated procedure is OPEN or CLOSED; and (b) interpreting the vectors such that if the vector for any given PERFORM statement indicates that: (1) the procedure associated therewith is CLOSED, then the code constituting the procedure is substituted for the code constituting the PERFORM statement, or (2) the procedure associated therewith is OPEN, then a simplified transfer and return of control code is substituted for the original code constituting the transfer and return of control.
Claim 2
Independent Claim 143 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including PERFORM statements and preselected procedures associated therewith, an improvement comprising the steps of: (a) ascertaining the control transfer relationship among PERFORM statements and their associated procedures, and characterizing said ascertained relationship in a vector of attributes for each PERFORM statement including whether an associated procedure is OPEN or CLOSED; and (b) interpreting the vectors such that if the vector for any given PERFORM statement indicates that: (1) the procedure associated therewith is CLOSED, then the code constituting the procedure is substituted for the code constituting the PERFORM statement, or (2) the procedure associated therewith is OPEN, then a simplified transfer and return of control code is substituted for the original code constituting the transfer and return of control.
Claim 3
Independent Claim 144 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including at least two PERFORM statements sharing a preselected procedure associated therewith, an improvement comprising the steps of: (a) ascertaining the control transfer relationship among the PERFORM statements and the shared associated procedure, and characterizing said ascertained relationship in a vector of attributes for each PERFORM statement including whether the shared procedure contains any externally specified labels within the body of the procedure; and (b) interpreting the vectors such that if the vector for any given PERFORM statement indicates both that the procedure does not contain said labels and that the object code size including any substituted for code would not exceed a predetermined size, then replacing the code constituting the procedure for the code of each associated PERFORM statement.
Claim 4
Independent Claim 144 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including at least two PERFORM statements sharing a preselected procedure associated therewith, an improvement comprising the steps of: (a) ascertaining the control transfer relationship among the PERFORM statements and the shared associated procedure, and characterizing said ascertained relationship in a vector of attributes for each PERFORM statement including whether the shared procedure contains any externally specified labels within the body of the procedure; and (b) interpreting the vectors such that if the vector for any given PERFORM statement indicates both that the procedure does not contain said labels and that the object code size including any substituted for code would not exceed a predetermined size, then replacing the code constituting the procedure for the code of each associated PERFORM statement.
Claim 5
Independent Claim 140 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including at least two PERFORM statements such that one of the PERFORM statements is nested within a preselected procedure associated with the other PERFORM statement, each PERFORM statement having at least one preselected procedure associated therewith, an improvement comprising the steps of: (a) ascertaining the nesting of PERFORM statements within their associated procedures, and characterizing said nesting in a called-by graph; and (b) substituting the procedure code or substituting a simplified call and return mechanism for each PERFORM statement in the COBOL source code in breadth-first order with respect to said called-by graph so that those PERFORM statements which are nested most deeply within the procedures associated with other PERFORM statements are compiled in depth-nested order.
Claim 6
Independent Claim 140 words
A method for execution on a digital computer for optimizing the instruction path length in the compilation of COBOL source code, said source code including at least two PERFORM statements such that one of the PERFORM statements is nested within a preselected procedure associated with the other PERFORM statement, each PERFORM statement having at least one preselected procedure associated therewith, an improvement comprising the steps of: (a) ascertaining the nesting of PERFORM statements within their associated procedures, and characterizing said nesting in a called-by graph; and (b) substituting the procedure code or substituting a simplified call and return mechanism for each PERFORM statement in the COBOL source code in breadth-first order with respect to said called-by graph so that those PERFORM statements which are nested most deeply within the procedures associated with other PERFORM statements are compiled in depth-nested order.

References Cited (Backward Citations)

US4435753A Cited
US4454579A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1989-01-27 1989-07-29 1990-01-28 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 1993-01-27 1993-07-29 1994-01-28 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 1997-01-27 1997-07-29 1998-01-28 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag