首页> 外文会议>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 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号