首页> 外文会议>ACM SIGPLAN-SIGACT symposium on Principles of programming languages >A simple typed intermediate language for object-oriented languages
【24h】

A simple typed intermediate language for object-oriented languages

机译:一种以面向对象语言的简单类型的中间语言

获取原文

摘要

Traditional class and object encodings are difficult to use in practical type-preserving compilers because of the complexity of the encodings. We propose a simple typed intermediate language for compiling object-oriented languages and prove its soundness. The key ideas are to preserve lightweight notions of classes and objects instead of compiling them away and to separate name-based subclassing from structure-based subtyping. The language can express standard implementation techniques for both dynamic dispatch and runtime type tests. It has decidable type checking even with subtyping between quantified types with different bounds. Because of its simplicity, the language is a more suitable starting point for a practical type-preserving compiler than traditional encoding techniques.
机译:由于编码的复杂性,传统类和对象编码难以在实际的保留编译器中使用。我们提出了一种简单类型的中间语言,用于编译面向对象语言并证明其声音。关键的想法是保留类和对象的轻量级概念而不是将它们的编译方式与基于结构的亚型分开的基于名称的子类化。该语言可以表达用于动态调度和运行时类型测试的标准实现技术。即使用不同界限的量化类型之间的亚型,它也具有可解除的类型检查。由于其简单性,语言比传统的编码技术更适合实际类型保存的编译器。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号