首页> 外文学位 >Compiling Prolog to Logic-inference Virtual Machine.
【24h】

Compiling Prolog to Logic-inference Virtual Machine.

机译:将Prolog编译为逻辑推理虚拟机。

获取原文
获取原文并翻译 | 示例

摘要

The Logic-inference Virtual Machine (LVM) is a new Prolog execution model consisting of a set of high-level instructions and memory architecture for handling control and unification. Different from the well-known Warren's Abstract Machine [1], which uses Structure Copying method, the LVM adopts a hybrid of Program Sharing [2] and Structure Copying to represent first-order terms. In addition, the LVM employs a single stack paradigm for dynamic memory allocation and embeds a very efficient garbage collection algorithm to reclaim the useless memory cells. In order to construct a complete Prolog system based on the LVM, a corresponding compiler must be written.;In this thesis, a design of such LVM compiler is presented and all important components of the compiler are described. The LVM compiler is developed to translate Prolog programs into LVM bytecode instructions, so that a Prolog program is compiled once and can run anywhere.;The first version of LVM compiler (about 8000 fines of C code) has been developed. The compilation time is approximately proportional to the size of source codes. About 80 percent of the time are spent on the global analysis. Some compiled programs have been tested under a LVM emulator. Benchmarks show that the LVM system is very promising in memory utilization and performance.
机译:逻辑推理虚拟机(LVM)是一个新的Prolog执行模型,由一组高级指令和用于处理控制和统一的内存体系结构组成。与使用结构复制方法的著名的沃伦抽象机[1]不同,LVM采用程序共享[2]和结构复制的混合表示一阶项。此外,LVM采用单个堆栈范例进行动态内存分配,并嵌入了非常有效的垃圾回收算法来回收无用的内存单元。为了构建基于LVM的完整Prolog系统,必须编写相应的编译器。本文对这种LVM编译器进行了设计,并描述了该编译器的所有重要组件。开发LVM编译器是为了将Prolog程序转换为LVM字节码指令,从而使Prolog程序一次编译就可以在任何地方运行。;已经开发了LVM编译器的第一个版本(大约8000的C代码罚款)。编译时间大约与源代码的大小成正比。大约80%的时间都花在了全局分析上。一些编译的程序已经在LVM仿真器下进行了测试。基准测试表明,LVM系统在内存利用率和性能方面非常有前途。

著录项

  • 作者

    Wang, Yifei (Fred).;

  • 作者单位

    Lakehead University (Canada).;

  • 授予单位 Lakehead University (Canada).;
  • 学科 Computer science.
  • 学位 M.Sc.
  • 年度 1999
  • 页码 94 p.
  • 总页数 94
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号