首页> 外国专利> Automatic program code generation in a compiler system for an instantiation of a generic program structure and based on formal parameters and characteristics of actual parameters

Automatic program code generation in a compiler system for an instantiation of a generic program structure and based on formal parameters and characteristics of actual parameters

机译:在编译器系统中自动程序代码生成,用于实例化通用程序结构,并基于形式参数和实际参数的特征

摘要

A compiler maintains a library of sharable program structures generated in response to instantiations of a generic program structure, along with characteristics of parameters which were used in generating the sharable program structure. In response to an instantiation of a generic program structure, the compiler generates information relating to the characteristics and usage of each parameter which are used in connection with the instantiation. The compiler then compares that information to the corresponding information associated with the sharable program structures in the library. If the library contains a sharable program structure whose parameter information compares satisfactorily, that sharable program structure is used in connection with further operations in connection with the instantiation. On the other hand, if the library does not contain such a sharable program structure, one is generated and stored in the library, along with the characteristics of the parameters used in its generation, for use in sharing with later instantiations. In addition, the just-generated sharable program structure is used in further operations in connection with the instantiation.
机译:编译器维护响应于通用程序结构的实例而生成的可共享程序结构的库,以及用于生成可共享程序结构的参数的特征。响应于通用程序结构的实例化,编译器生成与与实例化结合使用的每个参数的特性和用法有关的信息。然后,编译器将该信息与与库中的可共享程序结构关联的相应信息进行比较。如果该库包含其参数信息可令人满意地比较的可共享程序结构,则将该可共享程序结构与与实例化相关的其他操作结合使用。另一方面,如果库不包含这样的可共享程序结构,则会生成一个库并将其与库生成中使用的参数的特征一起存储在库中,以与以后的实例化共享。此外,刚刚生成的可共享程序结构将在与实例化相关的进一步操作中使用。

著录项

  • 公开/公告号US5280617A

    专利类型

  • 公开/公告日1994-01-18

    原文格式PDF

  • 申请/专利权人 DIGITAL EQUIPMENT CORPORATION;

    申请/专利号US19910770768

  • 发明设计人 RONALD F. BRENDER;BEVIN R. BRETT;

    申请日1991-10-04

  • 分类号G06F7/00;

  • 国家 US

  • 入库时间 2022-08-22 04:32:20

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号