首页>
外国专利>
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.
展开▼