免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1728 | 回复: 1
打印 上一主题 下一主题

ZZ Dynamic Compilation 可以讨论下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-17 13:23 |只看该作者 |倒序浏览
http://www.newsmth.net/bbsanc.ph ... 2F5%2FM.982641139.A


The University of Washington Dynamic Compilation Group
is exploring the technique of automatic dynamic compilation,
generating code at run time with the goal of improving
application performance. More specifically, we have been
investigating run-time specialization -- dynamic optimization
using program data values. Our work targets general-purpose,
imperative programming languages, initially C.
Run-time specialization enables applications to adapt to
particular program inputs and actual run-time behavior.
Run-time specialization holds the promise of tremendous
performance improvements for some applications; however,
a number of challenges still need to be addressed before
the technology can be widely deployed. First, the run-time
cost of the run-time optimizations can be significant;
the challenge is to reduce the cost of dynamic optimizations
without overly decreasing their effectiveness. Second,
the performance impact of the optimizations is highly
variable. Together with cost considerations, one easily
concludes that it is usually not beneficial to apply all
available optimizations to all potential targets. However,
the number of potential optimization configurations is large, so automatic s
election of optimizations and their targets is non-trivial.
We are working towards addressing these two challenges:
low-cost run-time optimization and automatic application
of run-time specialization. To that end, we have designed
and built a dynamic-compilation system, dubbed DyC
(pronounced dicey). DyC is based on a principled extension
of partial evaluation and is currently driven by user
annotations. DyC has good potential for producing speedups
for larger, more complex C programs than previous
general-purpose run-time-specialization systems have
achieved. Our results for a few medium-sized programs
are encouraging. The best speedup we obtained, 4.6, was
for mipsi, an instruction-level simulator for the MIPS
R3000. Dynamic-compilation overhead is low, averaging
10-1000 cycles per instruction generated on the DEC
Alpha 21164, depending on what optimizations are
performed.

[ 本帖最后由 prolj 于 2008-5-17 13:26 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-05-17 13:25 |只看该作者
和JIT有点像
LTO也是为了这种效果
有个有趣的项目好像在link-time进行全部的优化
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP