互操作性框架
A Framework for Interoperability
摘要:
高级语言的实际实现必须提供对具有用低级语言(通常是C)指定的API的库和系统服务的访问。这种机制的一个重要特征是外部接口策略,它定义了如何弥合高级语言和C之间的语义鸿沟。例如,基于IDL的工具生成代码,根据用户注释将数据编组到高级表示中或从高级表示中编组数据。对外关系政策的设计空间很大,每种做法都有其利弊。我们选择关注支持各种互操作性策略的问题,而不是致力于特定的策略。在本文中,我们描述了一个框架,语言的互操作性,表达能力足以支持非常有效的实现范围广泛的不同的外国接口政策。我们描述了两种工具,实现了我们的框架上的基本不同的政策,并提出了基准,证明他们的效率。
英文摘要:
Practical implementations of high-level languages must provide access to libraries and system services that have APIs specified in a low-level language (usually C). An important characteristic of such mechanisms is the foreign-interface policy that defines how to bridge the semantic gap between the high-level language and C. For example, IDL-based tools generate code to marshal data into and out of the high-level representation according to user annotations. The design space of foreign-interface policies is large and there are pros and cons to each approach. Rather than commit to a particular policy, we choose to focus on the problem of supporting a gamut of interoperability policies. In this paper, we describe a framework for language interoperability that is expressive enough to support very efficient implementations of a wide range of different foreign-interface policies. We describe two tools that implement substantially different policies on top of our framework and present benchmarks that demonstrate their efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。