首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:Assessing the Overhead of ML Exceptions by Selective CPS Transformation
  • 本地全文:下载
  • 作者:Jung-taek Kim ; Kwangkeun Yi ; Olivier Danvy
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:1998
  • 卷号:5
  • 期号:15
  • 出版社:Aarhus University
  • 摘要:ML's exception handling makes it possible to describe exceptional execution flows conveniently, but it also forms a performance bottleneck. Our goal is to reduce this overhead by source-level transformation. To this end, we transform source programs into continuation-passing style (CPS), replacing handle and raise expressions by continuation-catching and throwing expressions, respectively. CPS-transforming every expression, however, introduces a new cost. We therefore use an exception analysis to transform expressions selectively: if an expression is statically determined to involve exceptions then it is CPS-transformed; otherwise, it is left in direct style. In this article, we formalize this selective CPS transformation, prove its correctness, and present early experimental data indicating its effect on ML programs.
国家哲学社会科学文献中心版权所有