【24h】

Experiences creating a portable cedar

机译:创建便携式雪松的经验

获取原文

摘要

Cedar is the name for both a language and an environment in use in the Computer Science Laboratory at Xerox PARC since 1980. The Cedar language is a superset of Mesa, the major additions being garbage collection and runtime types. Neither the language nor the environment was originally intended to be portable, and for many years ran only on D-machines at PARC and a few other locations in Xerox. We recently re-implemented the language to make it portable across many different architectures. Our strategy was, first, to use machine-dependent C code as an intermediate language, second, to create a language-independent layer known as the Portable Common Runtime, and third, to write a relatively large amount of Cedar-specific runtime code in a subset of Cedar itself. By treating C as an intermediate code we are able to achieve reasonably fast compilation, very good eventual machine code, and all with relatively small programmer effort. Because Cedar is a much richer language than C, there were numerous issues to resolve in performing an efficient translation and in providing reasonable debugging. These strategies will be of use to many other porters of high-level languages who may wish to use C as an assembler language without giving up either ease of debugging or high performance. We present a brief description of the Cedar language, our portability strategy for the compiler and runtime, our manner of making connections to other languages and the Unix
机译:Cedar是自1980年以来在Xerox PARC的计算机科学实验室中使用的一种语言和一种环境的名称。Cedar语言是Mesa的超集,主要的补充是垃圾收集和运行时类型。语言和环境最初都不是便携式的,并且多年来仅在PARC的D机和Xerox的其他一些地方运行。我们最近重新实现了该语言,以使其可以在许多不同的体系结构中移植。我们的策略是,首先,使用与机器相关的C代码作为中间语言,其次,创建一个与语言无关的层,称为可移植通用运行时,第三,在Java中编写相对大量的Cedar特定的运行时代码。雪松本身的一个子集。通过将C视为中间代码,我们能够以相当少的程序员工作量就可以实现相当快的编译,非常好的最终机器代码。由于Cedar是比C更丰富的语言,因此在执行有效的翻译和提供合理的调试方面需要解决许多问题。这些策略将对许多其他高级语言的搬运工有用,他们可能希望将C用作汇编语言,而又不会放弃调试的便利性或高性能。我们简要介绍了Cedar语言,我们的编译器和运行时可移植性策略,与其他语言和Unix的连接方式

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号