首页> 外文期刊>Software >Coloring, a versatile technique for implementing object-oriented languages
【24h】

Coloring, a versatile technique for implementing object-oriented languages

机译:着色,一种用于实现面向对象语言的通用技术

获取原文
获取原文并翻译 | 示例
       

摘要

Late binding and subtyping create run-time overhead for object-oriented languages. Dynamic typing and multiple inheritance create even more overhead. Static typing and single inheritance lead to two major invariants, of reference and position, that make the implementation as efficient as possible. Coloring is a technique that preserves these invariants for dynamic typing or multiple inheritance at minimal spatial cost. Coloring has been independently proposed for method invocation under the name of selector coloring, for subtype tests under the name of pack encoding, and for attribute access and object layout. This paper reviews a number of uses of coloring for optimizing object-oriented programming, generalizes them, and specifies several variations, such as bidirectional and n-directional coloring. Coloring is NP-hard, hence compilers that use it depend on heuristics. The paper describes two families of heuristics and presents some experimental results which indicate that coloring is both efficient and tractable and that bidirectional coloring gives the best results.
机译:后期绑定和子类型化为面向对象的语言带来了运行时开销。动态类型和多重继承会产生更多开销。静态类型化和单一继承导致引用和位置这两个主要不变,这使实现尽可能高效。着色是一种以最小的空间成本保留这些不变量以进行动态键入或多重继承的技术。已经为选择器着色名称下的方法调用,在包编码名称下的子类型测试以及属性访问和对象布局独立提出了着色。本文回顾了着色在优化面向对象程序设计中的多种用途,对其进行了概括,并指定了多种变体,例如双向和n向着色。着色是NP难的,因此使用它的编译器取决于试探法。本文描述了两种启发式方法,并提供了一些实验结果,这些结果表明着色既有效又易于处理,双向着色效果最好。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号