首页> 外国专利> Compiling an application program written in legacy source code according to stack or legacy semantics based on equivalence

Compiling an application program written in legacy source code according to stack or legacy semantics based on equivalence

机译:根据堆栈或基于等价语义的旧版语义编译用旧版源代码编写的应用程序

摘要

A computer system (1200) prepares an application program (1210) comprising legacy source code written in, for example, COBOL for deployment into a processing environment (1260). The system has a control flow analyser unit (1242) operable to determine equivalence in control flow between source code if compiled using stack semantics and if compiled legacy semantics. Determination of equivalence involves generating and inspecting a directed call graph to identify strongly connected components. In the absence of such, tuples comprising ranges of functions, end points of functions and reaching endpoints of direct/indirect predecessor nodes are created and a union of the range and the reaching end point calculated. If the union is NULL and there are no strongly connected components then equivalence exists. The system has a compiler unit (1243) to compile the legacy source code using stack based semantics if equivalence is determined and using legacy semantics if non-equivalence is determined. This compilation may be to intermediate code such as Java Bytecode or common intermediate language (CIL) code.
机译:计算机系统(1200)准备应用程序(1210),该应用程序包括以例如COBOL编写的遗留源代码以用于部署到处理环境(1260)中。该系统具有控制流分析器单元(1242),该控制流分析器单元可操作来确定如果使用堆栈语义进行编译以及如果使用编译后的传统语义则在源代码之间的控制流中的等效性。确定等效性包括生成和检查有向调用图以标识强连接的组件。在不存在这样的元组的情况下,创建包含功能范围,功能端点以及直接/间接前任节点的到达端点的元组,并计算范围和到达终点的并集。如果联合为NULL,并且没有牢固连接的组件,则存在等效项。该系统具有编译器单元(1243),如果确定等效,则使用基于堆栈的语义来编译传统源代码,如果确定不等效,则使用传统语义来编译传统源代码。该编译可以针对中间代码,例如Java字节码或通用中间语言(CIL)代码。

著录项

  • 公开/公告号GB2503589A

    专利类型

  • 公开/公告日2014-01-01

    原文格式PDF

  • 申请/专利权人 MICRO FOCUS IP DEVELOPMENT LTD;

    申请/专利号GB20130014580

  • 发明设计人 JEREMY WRIGHT;

    申请日2013-08-14

  • 分类号G06F9/45;

  • 国家 GB

  • 入库时间 2022-08-21 15:35:52

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号