清晰度MCode:用于编译的可重目标中间表示

B. Lewis, L. Deutsch, Theodore C. Goldstein
{"title":"清晰度MCode:用于编译的可重目标中间表示","authors":"B. Lewis, L. Deutsch, Theodore C. Goldstein","doi":"10.1145/202529.202542","DOIUrl":null,"url":null,"abstract":"The Clarity C++ programming language is a dialect of C++ being developed in Sun Micro-systems Laboratories to support the development of reliable systems and application software, and especially distributed software. We have developed a high-level, machine-independent intermediate representation to compile Clarity that we call MCode (for \"middle code\"). We use MCode to compile Clarity programs at program runtime (i.e., on-the-fly) into SPARC - code for the Solaris TM operating system. The runtime code generator produces good quality machine code and is designed to be easily retargetable to new machines. We also support an interpreter for MCode that supports full interoperation with C code and existing C libraries. The choice of whether to compile or interpret MCode is done at runtime on a procedure-by-procedure basis. MCode is significantly more compact than native machine code. This fact, plus our ability to selectively interpret seldom-exe-cuted code instead of compiling it, means that MCode programs have a smaller working set and run better with less memory than the corresponding native machine code programs. In order to support systems programming, we store MCode in platform-standard object files. This enables MCode programs to fully interoperate with existing C libraries and code. It also allows programmers to use standard linkers and other program development tools with MCode object files.","PeriodicalId":398799,"journal":{"name":"ACM SIGPLAN Workshop on Intermediate Representations","volume":"56 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1995-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"11","resultStr":"{\"title\":\"Clarity MCode: a retargetable intermediate representation for compilation\",\"authors\":\"B. Lewis, L. Deutsch, Theodore C. Goldstein\",\"doi\":\"10.1145/202529.202542\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The Clarity C++ programming language is a dialect of C++ being developed in Sun Micro-systems Laboratories to support the development of reliable systems and application software, and especially distributed software. We have developed a high-level, machine-independent intermediate representation to compile Clarity that we call MCode (for \\\"middle code\\\"). We use MCode to compile Clarity programs at program runtime (i.e., on-the-fly) into SPARC - code for the Solaris TM operating system. The runtime code generator produces good quality machine code and is designed to be easily retargetable to new machines. We also support an interpreter for MCode that supports full interoperation with C code and existing C libraries. The choice of whether to compile or interpret MCode is done at runtime on a procedure-by-procedure basis. MCode is significantly more compact than native machine code. This fact, plus our ability to selectively interpret seldom-exe-cuted code instead of compiling it, means that MCode programs have a smaller working set and run better with less memory than the corresponding native machine code programs. In order to support systems programming, we store MCode in platform-standard object files. This enables MCode programs to fully interoperate with existing C libraries and code. It also allows programmers to use standard linkers and other program development tools with MCode object files.\",\"PeriodicalId\":398799,\"journal\":{\"name\":\"ACM SIGPLAN Workshop on Intermediate Representations\",\"volume\":\"56 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1995-03-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"11\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM SIGPLAN Workshop on Intermediate Representations\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/202529.202542\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM SIGPLAN Workshop on Intermediate Representations","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/202529.202542","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 11

摘要

Clarity c++编程语言是Sun微系统实验室开发的c++方言,用于支持可靠系统和应用软件的开发,尤其是分布式软件。我们已经开发了一个高级的、独立于机器的中间表示来编译Clarity,我们称之为MCode(中间代码)。我们使用MCode在程序运行时将Clarity程序编译成Solaris TM操作系统的SPARC代码。运行时代码生成器生成高质量的机器代码,并被设计为易于重新定位到新机器。我们还支持MCode的解释器,它支持与C代码和现有C库的完全互操作。选择是编译还是解释MCode是在运行时逐个过程的基础上完成的。MCode明显比本机机器码更紧凑。这一事实,加上我们有选择地解释很少执行的代码而不是编译它的能力,意味着MCode程序具有更小的工作集,并且比相应的本机机器码程序在更少的内存下运行得更好。为了支持系统编程,我们将MCode存储在平台标准的目标文件中。这使MCode程序能够与现有的C库和代码完全互操作。它还允许程序员在MCode对象文件中使用标准链接器和其他程序开发工具。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Clarity MCode: a retargetable intermediate representation for compilation
The Clarity C++ programming language is a dialect of C++ being developed in Sun Micro-systems Laboratories to support the development of reliable systems and application software, and especially distributed software. We have developed a high-level, machine-independent intermediate representation to compile Clarity that we call MCode (for "middle code"). We use MCode to compile Clarity programs at program runtime (i.e., on-the-fly) into SPARC - code for the Solaris TM operating system. The runtime code generator produces good quality machine code and is designed to be easily retargetable to new machines. We also support an interpreter for MCode that supports full interoperation with C code and existing C libraries. The choice of whether to compile or interpret MCode is done at runtime on a procedure-by-procedure basis. MCode is significantly more compact than native machine code. This fact, plus our ability to selectively interpret seldom-exe-cuted code instead of compiling it, means that MCode programs have a smaller working set and run better with less memory than the corresponding native machine code programs. In order to support systems programming, we store MCode in platform-standard object files. This enables MCode programs to fully interoperate with existing C libraries and code. It also allows programmers to use standard linkers and other program development tools with MCode object files.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信