arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1103.0812cs.PL
收藏

B-Prolog的语言特点及结构

The Language Features and Architecture of B-Prolog

Neng-Fa Zhou

摘要:

B-Prolog是标准Prolog语言的高性能实现,具有多个扩展,包括匹配子句、事件处理的动作规则、有限域约束求解、数组和哈希表、声明性循环构造和制表。B-Prolog系统基于TOAM体系结构,其与WAM的不同之处主要在于(1)参数通过堆栈老式地传递,(2)每个谓词调用仅使用一个帧,以及(3)提供用于编码匹配树的指令。最新的建筑,称为小TOAM,与WAM的不同之处在于,它不使用用于参数或临时变量的寄存器,并提供用于编码谓词调用的可变大小指令。本文概述了语言的特点,并详细描述了TOAMJr.体系结构,包括对操作规则和制表的体系结构支持。

英文摘要:

B-Prolog is a high-performance implementation of the standard Prolog language with several extensions including matching clauses, action rules for event handling, finite-domain constraint solving, arrays and hash tables, declarative loop constructs, and tabling. The B-Prolog system is based on the TOAM architecture which differs from the WAM mainly in that (1) arguments are passed old-fashionedly through the stack, (2) only one frame is used for each predicate call, and (3) instructions are provided for encoding matching trees. The most recent architecture, called TOAM Jr., departs further from the WAM in that it employs no registers for arguments or temporary variables, and provides variable-size instructions for encoding predicate calls. This paper gives an overview of the language features and a detailed description of the TOAM Jr. architecture, including architectural support for action rules and tabling.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑