首页> 外国专利> Message compiler for object-oriented language that statically produces object code by provisionally identifying a set of candidate types

Message compiler for object-oriented language that statically produces object code by provisionally identifying a set of candidate types

机译:面向对象语言的消息编译器,可通过临时标识一组候选类型来静态生成目标代码

摘要

A data processing system including a message compiler for an object- oriented language with which object types are determined during execution of a programming code. The compiler compiles source code into object code. The compiler includes a provisional type identifying device for provisionally identifying a set of candidate types for an object to which a message is to be transmitted, based on a parsed result of the source code. A static method-searching device statically searches a method corresponding to the candidate type provisionally identified by the provisional type identifying device when the set of candidate types includes at least one candidate type. A type-checking code producing device produces object code to perform a type-check with the set of candidate types provisionally identified, if the set of candidate types includes more than one candidate type. A static call producing device produces, based on the method statically searched by the static method- searching device, object code for a statically bound call. The static call producing device also produces object code for a statically bound call if a candidate type of the set of candidate types is type-checked to be of a correct type. A dynamic call producing device produces object code for a dynamically bound call, if the provisional type identifying device identifies an empty set of the candidate types and produces object code if the candidate type is type-checked to be of an incorrect type.
机译:一种数据处理系统,包括用于面向对象的语言的消息编译器,在编程代码执行期间使用该消息编译器确定对象类型。编译器将源代码编译为目标代码。编译器包括临时类型识别设备,该临时类型识别设备用于基于源代码的解析结果来临时识别要向其发送消息的对象的一组候选类型。当一组候选类型包括至少一个候选类型时,静态方法搜索设备静态地搜索与由临时类型识别设备临时识别的候选类型相对应的方法。如果一组候选类型包括一个以上候选类型,则类型校验代码产生设备产生目标代码以对临时识别出的一组候选类型执行类型校验。静态调用产生设备基于由静态方法搜索设备静态搜索的方法,产生用于静态绑定调用的目标代码。如果候选类型集合中的候选类型被类型检查为正确类型,则静态呼叫产生设备还产生用于静态绑定呼叫的目标代码。如果临时类型识别设备识别出候选类型的空集,则动态呼叫产生设备产生用于动态绑定呼叫的目标代码,并且如果候选类型被类型检查为错误类型,则动态呼叫产生设备产生目标代码。

著录项

  • 公开/公告号US5579518A

    专利类型

  • 公开/公告日1996-11-26

    原文格式PDF

  • 申请/专利权人 FUJI XEROX CO. LTD.;

    申请/专利号US19950455255

  • 发明设计人 KAZUKI YASUMATSU;

    申请日1995-05-31

  • 分类号G06F15/00;

  • 国家 US

  • 入库时间 2022-08-22 03:11:02

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号