在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 《A NANOPASS FRAMEWORK FOR COMMERCIAL COMPILER DEVELOPMENT》

《A NANOPASS FRAMEWORK FOR COMMERCIAL COMPILER DEVELOPMENT》

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.79M
  • 下载次数:4
  • 浏览次数:43
  • 发布时间:2023-01-16
  • 实例类别:一般编程问题
  • 发 布 人:老刘
  • 文件格式:.pdf
  • 所需积分:0
 相关标签:

实例介绍

【实例简介】《A NANOPASS FRAMEWORK FOR COMMERCIAL COMPILER DEVELOPMENT》

【实例截图】

【核心代码】

Contents
List of Tables ix
List of Figures x
Chapter 1. Introduction 1
Chapter 2. The Nanopass Framework 9
2.1. Introduction 9
2.2. The Prototype Framework 11
2.3. New Framework Specification 14
2.4. Comparison with the Prototype Nanopass Framework 51
2.5. Related Work 56
Chapter 3. Evaluating the Nanopass Framework 59
3.1. Introduction 59
3.2. Transitioning a Class Compiler 60
3.3. Recreating a Commercial Compiler 60
3.4. Comparing Nanopass Passes with Traditional Passes 64
3.5. Comparing the Speed of Generated Code 74
3.6. Comparing Compilation Speed 75
Chapter 4. Cross-library Optimization 93
4.1. Introduction 93
4.2. Background 96
4.3. The library-group Form 102
4.4. Automatic Cross-Library Optimization 113
4.5. Empirical Evaluation 115
4.6. Related Work 117
4.7. Future Work 119
4.8. Conclusion 120
vii
Chapter 5. Closure Optimization 122
5.1. Introduction 122
5.2. The Optimizations 123
5.3. The Algorithm 131
5.4. Results 141
5.5. Related Work 145
5.6. Conclusion 146
Chapter 6. Conclusion and Future Work 147
Bibliography 153
viii
List of Tables
3.1 Comparing line and character counts for original and nanopass versions of cpsrc. 65
3.2 Run time of the nanopass version of cpsrc relative to the original version. 66
3.3 Comparing line and character counts for the original and nanopass versions of cp0. 70
3.4 Run time of the nanopass version of cp0 relative to the original version. 70
3.5 Normalized run times of the similix and softscheme benchmarks. 74
3.6 Percentage of back-end time for each of three dummy passes, one after the initial back-end
pass, one after the primitive expansion pass, and one after the instruction selection pass. 87
5.1 Eliminated closures (Closure), free-variables (FV), memory references (Mem. Ref.), and
allocation (Alloc.) by closure optimization type. 143
ix
List of Figures
2.1 Comparing a language definition between the prototype and new nanopass frameworks. 52
2.2 Comparing language extension between the prototype and new nanopass frameworks. 52
2.3 Comparing pass definitions between the prototype and new nanopass frameworks. 53
3.1 Normalized run time of cpsrc pass for R6RS benchmarks. 67
3.2 Normalized run time of cpsrc pass for new benchmarks. 68
3.3 Normalized run time of cpsrc pass for benchmarks. 69
3.4 Normalized run time of cp0 pass for the R6RS benchmarks. 71
3.5 Normalized run time of cp0 pass for the source optimizer benchmarks. 72
3.6 Normalized run time of cp0 pass for the Chez Scheme benchmarks. 73
3.7 Normalized run-time performance of the R6RS benchmarks. 76
3.8 Normalized run-time performance of the source optimizer benchmarks. 77
3.9 Normalized run-time performance of the Chez Scheme benchmarks. 78
3.10 Normalized compile-time performance of the R6RS benchmarks. 80
3.11 Normalized compile-time performance of the source optimizer benchmarks. 81
3.12 Normalized compile-time performance of the Chez Scheme benchmarks. 82
3.13 Normalized compile times vs. the size of the expanded source code. 83
3.14 Normalized front-end compile-time performance of the R6RS benchmarks. 85
3.15 Normalized front-end compile-time performance of the source optimizer benchmarks. 88
3.16 Normalized front-end compile-time performance of the Chez Scheme benchmarks. 89
3.17 Normalized back-end compile-time performance of the R6RS benchmarks. 90
3.18 Normalized back-end compile-time performance of the source optimizer benchmarks. 91
3.19 Normalized back-end compile-time performance of the Chez Scheme benchmarks. 92
4.1 The (tree) library, which implements a tree data structure. 98
x
4.2 The (tree constants) library, which defines a mechanism for creating constant trees
and a few constant trees of its own. 99
4.3 A program that uses the (tree) and (tree constants) libraries. 99
4.4 Library records for the (tree) and (tree constants) libraries and a program record for
our program. 101
4.5 A nested letrec* for the library group that includes the (tree) library, the
(tree constants) library, and our program, with indicating code that has been
omitted for brevity. 107
4.6 A nested letrec* for our library group that includes the (tree) library, the
(tree constants) library, and our program, with library-global references replaced
by local-variable references. 108
4.7 The final invoke code expansion target for the library group that includes the (tree)
library, the (tree constants) library, and our program. 109
4.8 Three simple libraries, (A), (B), and (C), with simple dependencies. 109
4.9 A library-group form containing the (A) and (C) libraries. 110
4.10 Expansion of library group marking (A) as invoked and invoking (B). 110
4.11 Final expansion for correct library group with the (A) and (C) libraries. 110
4.12 Library and program records for the library group, showing the shared invoke code run
when either the (tree) or (tree constant) library is invoked or when the top-level
program is run. 111
4.13 Final expansion of the library group containing the (tree) library, the (tree constants)
library, and our program. 112
5.1 Function f with a self-reference in its closure. 128
5.2 Mutual references for the even? and odd? closures. 128
5.3 Mutual references for the even? and odd? closures, with z free in even?. 129
5.4 The core intermediate language. 134
5.5 Intermediate language after uncovering free variables. 134
5.6 Intermediate language after uncovering known calls. 134
5.7 Intermediate language after computing strongly connected sets. 134
5.8 Intermediate language after choosing subsets for sharing. 134
xi
5.9 Final output intermediate language. 134
5.10 Closure-related primitives. 135

标签:

实例下载地址

《A NANOPASS FRAMEWORK FOR COMMERCIAL COMPILER DEVELOPMENT》

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警