期刊文献+

Cobol到Java翻译中的数据类型转换方法 被引量:4

Mapping Cobol Data to Java Type System with Functional Equivalence
在线阅读 下载PDF
导出
摘要 将Cobol代码迁移到新的平台,如Java是减轻Cobol代码维护负担的一个有效方法·怎样将Cobol数据平滑迁移到新平台则是必须解决的基本问题之一·以前的大部分研究工作都直接将Cobol数据映射到现代程序设计语言中的基本数据类型,比如int,float等·但是,这种简单映射并不能保持原来的Cobol语义,从而导致目标码并不能与原来的代码运行一致·首先利用数据抽象技术对Cobol数据进行初步建模,在此基础上进一步提出了一个纯Java的功能等价的封装方法,可以有效地将Cobol数据描述映射到Java类型系统·该方法已经在一个Cobol2Java翻译系统———C2J翻译器中得到实现,并且应用于一个近400万行的真实银行商用系统·实验结果表明,此方法可以在保持功能等价的情况下,将Cobol数据无需手工干预地迁移到Java平台· Migrating the Cobol code to a new platform such as Java is an effective method to alleviate the burden of maintenance of the Cobol code. How to migrate Cobol data to the new platform is one of the basic problems to be solved. Most research work directly casts Cobol data to primitive data type such as i nt or float in modern programming language. However, this simple data mapping method doesn't keep the Cobol semantic and thus makes the translated code run inconsistently with the original Cobol code. In this paper, a pure Java encapst/lating method is presented using the data modeling technology to map the Cobol data to Java type system with functional equivalence. Based on this method, a Cobol2Java translator is implemented. The translator is also applied to a real business system of about 4 million lines of Cobol code. Test results show that this tool could translate the Cobol system to Java successfully and without any human interaction.
出处 《计算机研究与发展》 EI CSCD 北大核心 2006年第2期336-342,共7页 Journal of Computer Research and Development
基金 国家自然科学基金项目(60103006)~~
关键词 Cob012Java 遗产代码 数据类型迁移 数据封装 代码维护 Cobol2Java legacy code data type migration data encapsulation code maintenance
  • 相关文献

参考文献13

  • 1ANSI. Programming Language COBOL X3.23 1985. 1985.
  • 2Arie van Deursen, Paul Klint, Chris Verhoef. Research issues in the renovation of legacy system.S. In: Proc. 1999 Int'1 Conf.Fundamental Approaches to Software Engineering. Berlin:Springer, 1999. 1-21.
  • 3LegacyJ'Inc. PerCobol-Cobol to Java Compiler. http://www.legacyj, corrdlgcyj-percl, html, 2003.
  • 4S. Comella-Dorda, R, Seacord, K. Walnau, et al. A survey of black-box modernization approaches for information systems. In:Proc, 2000 IEEE Int'1 Conf. Software Maintenance. Los Alamitos, CA: IEEE Computer Society Press, 2000. 173-184.
  • 5H. Sneed. Encapsulating legacy software for use in client/server systems. In: Proc. 1996 Working Conf. Reverse Engineering.Los Alamitos, CA: IEEE Computer Society Press, 1996. 104-119.
  • 6H. Sneed. Program interface reengineering for wrapping. In:Proc. 1997 Working Conf. Reverse Engineering. Los Alamitos.CA: IEEE Computer Society Press, 1997. 206-215.
  • 7MicroFocus Inc, ht t p ://www. microfocus, com/whitepapers/COBOL-Enterprise-J avaBeans, asp, 2003.
  • 8A. A, Terekhov, C. Verhoef. Realities of language conversions.IEEE Software, 2000, 17(6) : 111-124.
  • 9Corporola Inc. COBOL2Java. http://www. corporola, com/product/COBOL2Java, html, 2004.
  • 10Software Mining Inc. COBOL Translation Toolkit (CORECT)Technical Architecture Overview. http://www. acm.co. uk/papers/techpaper, jsp, 2003.

同被引文献66

  • 1郑炜,陈榕,苏翼鹏,殷人昆.CAR构件编程技术中的自描述特性[J].计算机工程与应用,2005,41(9):95-98. 被引量:4
  • 2任俊伟,林东岱.JNI技术实现跨平台开发的研究[J].计算机应用研究,2005,22(7):180-184. 被引量:40
  • 3陈翔,王学斌,吴泉源.代码生成技术在MDA中的实现[J].计算机应用研究,2006,23(1):147-150. 被引量:25
  • 4陈晖,陈意云,吴萍,项森.一种用于Java虚拟机的类型化低级语言[J].计算机研究与发展,2006,43(1):15-22. 被引量:3
  • 5Free Software Foundation,Inc.Gcc[OL].[2008-07-01].http://gcc.gnu.org/.
  • 6Computer Architecture and Parallel Systems Laboratory,University of Delaware.Open64[OL].[2008-07-01].http://www.open64.net/.
  • 7Chen W.Building a source-to-source UPC-to-C translator[D].Berkeley:University of California at Berkley,2005.
  • 8Liao Chunhua,Hernandez O,Chapman B,et al.OpenUH:An optimizing,portable OpenMP compiler[J].Concurrency and Computation:Practice and Experience,2007,19(18):2317-2332.
  • 9ACE Associated Computer Experts.Supertest[OL].[2008-07-01].http://www.ace.nl/compiler/supertest.html.
  • 10Blume W,Eigenmann R,Faigin K,et al.Polaris:Improving the effectiveness of parallelizing compilers[G] //LNCS892:Proc of LCPC.London:Springer,1994:141-154.

引证文献4

二级引证文献14

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部