首页> 外文会议>International Symposium on Functional and Logic Programming >Compiling Lazy Functional Programs Based on the Spineless Tagless G-Machine for the Java Virtual Machine
【24h】

Compiling Lazy Functional Programs Based on the Spineless Tagless G-Machine for the Java Virtual Machine

机译:编译基于无螺栓虚拟机的无螺栓标签G-Machine的惰性功能程序

获取原文

摘要

A systematic method of compiling lazy functional programs based on the Spineless Tagless G-machine (STGM) is presented for the Java Virtual Machine (JVM). A new specification of the STGM, which consists of a compiler and a reduction machine, is presented; the compiler translates a program in the STG language, which is the source language for the STGM, into a program in an intermediate language called L-code, and our reduction machine reduces the L-code program into an answer. With our representation for the reduction machine by the Java language, an L-code program is translated into a Java program simulating the reduction machine. The translated Java programs also run at a reasonable execution speed. Our experiment shows that execution times of translated benchmarks are competitive compared with those in a traditional Haskell interpreter, Hugs, particularly when Glasgow Haskell compiler's STG-level optimizations are applied.
机译:介绍了Java虚拟机(JVM)的基于无线标签G-Machine(STGM)的编译惰性功能程序的系统方法。提出了由编译器和减速机组成的STGM的新规范;编译器以STG语言转换为STGM的源语言的程序,进入名为L代码的中间语言的程序,我们的减少机将L代码程序减少为答案。通过我们对Java语言的减速机表示,将L代码程序转换为模拟减速机的Java程序。翻译的Java程序也以合理的执行速度运行。我们的实验表明,与传统的Haskell翻译,拥抱中拥抱的人相比,翻译基准的执行时间是竞争力的,特别是当应用Glasgow Haskell Compiler的STG级优化时。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号