Converting the Compound Control Structure of PERFORM and GOTO Statements in Code Translation
DOI:
Author:
Affiliation:

Clc Number:

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    COBOL, a traditional language, has been presented for more than 50 years. There are at least 100 billion lines of legacy codes written in COBOL up to now. An effective way to maintain these legacy codes is to translate them into modern languages, such as Java. While translating, it is a key-step to eliminate ‘OTO’and‘ERFORM’and their compound control structures in COBOL programs. A method which uses ‘witch’and ‘hile’statements is proposed in this paper instead of ‘OTO’and ‘ERFORM’and their compound control structures. It preserves the readability because the target Java program has the similar control structures. The code size of the target program expands only 2 times in average. This method is applied in the ‘C2J translation system’ It is proved sound and effective since 4 million lines of real COBOL program have been translated and its target program has passed the test.

    Reference
    Related
    Cited by
Get Citation

武成岗,张兆庆,乔如良,冯晓兵,高琳,石学林,蒋弘山,崔慧敏.代码翻译中PERFORM和GOTO语句复合结构的变换.软件学报,2004,15(4):475-486

Copy
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:August 26,2003
  • Revised:November 11,2003
  • Adopted:
  • Online:
  • Published:
You are the firstVisitors
Copyright: Institute of Software, Chinese Academy of Sciences Beijing ICP No. 05046678-4
Address:4# South Fourth Street, Zhong Guan Cun, Beijing 100190,Postal Code:100190
Phone:010-62562563 Fax:010-62562533 Email:jos@iscas.ac.cn
Technical Support:Beijing Qinyun Technology Development Co., Ltd.

Beijing Public Network Security No. 11040202500063