首页> 外国专利> Methods, systems, and computer program products for enabling cross language access to an addressable entity in an execution environment

Methods, systems, and computer program products for enabling cross language access to an addressable entity in an execution environment

机译:用于使跨语言访问执行环境中的可寻址实体的方法,系统和计算机程序产品

摘要

Methods, systems, and computer program products for enabling cross language access of an addressable entity in an execution environment are disclosed. According to one method, an unresolved reference entity is detected in a first object code generated from first source code written in a first programming language, where a portion of the first object code using the unresolved reference entity is generated by a compiler of the first source code using an execution model associated with an addressable entity referenced by the unresolved reference entity. An addressable entity is located in a second object code generated from second source code written in a second programming language, where the located addressable entity has an associated alias symbol from a namespace of the first programming language. It is determined whether the located addressable entity is the referenced addressable entity by matching a symbol associated with the unresolved reference entity with the alias symbol associated with the located addressable entity. In response to determining that the symbol associated with the unresolved reference entity matches the alias symbol, the unresolved reference entity is resolved to the located addressable entity using an identifier, wherein the identifier is associated with a storage area associated with the located addressable entity and wherein the located addressable entity is generated by a compiler of the second source code and conforms to the execution model used by the compiler of the first source code to generate the portion of the first object code using the referenced addressable entity. The portion of the first object code using the resolved reference entity is allowed to access the located addressable entity via the storage area associated with the identifier as a result of the use of the shared execution model by the compilers of the first and second source code.
机译:公开了用于使得能够在执行环境中对可寻址实体进行跨语言访问的方法,系统和计算机程序产品。根据一种方法,在从以第一编程语言编写的第一源代码生成的第一目标代码中检测到未解析的参考实体,其中,使用未解析的参考实体的一部分第一目标代码是由第一源代码的编译器生成的使用与未解决的引用实体引用的可寻址实体相关联的执行模型执行代码。可寻址实体位于第二目标代码中,该第二目标代码由以第二编程语言编写的第二源代码生成,其中所定位的可寻址实体具有来自第一编程语言的命名空间的关联别名符号。通过将与未解析的参考实体相关联的符号与与所定位的可寻址实体相关联的别名匹配,来确定所定位的可寻址实体是否为所参考的可寻址实体。响应于确定与未解析的参考实体相关联的符号与别名符号匹配,使用标识符将未解析的参考实体解析为所定位的可寻址实体,其中该标识符与与所定位的可寻址实体相关联的存储区域相关联,并且其中所定位的可寻址实体是由第二源代码的编译器生成的,并且与第一源代码的编译器使用的执行模型一致,以使用所引用的可寻址实体来生成第一目标代码的一部分。作为第一和第二源代码的编译器使用共享执行模型的结果,使用解析的参考实体的第一目标代码的一部分被允许通过与标识符关联的存储区域访问所定位的可寻址实体。

著录项

  • 公开/公告号US2008005728A1

    专利类型

  • 公开/公告日2008-01-03

    原文格式PDF

  • 申请/专利权人 ROBERT PAUL MORRIS;

    申请/专利号US20060478908

  • 发明设计人 ROBERT PAUL MORRIS;

    申请日2006-06-30

  • 分类号G06F9/45;

  • 国家 US

  • 入库时间 2022-08-21 20:11:45

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号