Communications of the ACM · 1988 · 57 citations · 6 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersProgramming LanguagesAbstract Syntax TreesData-flow AnalysisGarbage CollectionMemory HierarchyMemory Hierarchy DesignMemory ManagementAbstract MachinesCompactionGarbage Collection OverheadHeap ManagementHeap OrganizationHeapsPointer Reversal
The Warren abstract machine (WAM) has become a generally accepted standard Prolog implementation technique. Garbage collection is an important aspect in the implementation of any Prolog system. A synopsis of the WAM is presented and then marking and compaction algorithms are shown that take advantage of WAM's unique use of the data areas. Marking and compaction are performed on both the heap and the trail; both use pointer reversal techniques, which obviate the need for extra stack space. However, two bits for every pointer on the heap are reserved for the garbage collection algorithm. The algorithm can work on segments of the heap, which may lead to a significant reduction of the total garbage collection time. The time of the algorithms are linear in the size of the areas.
6
The memory management of PROLOG implementations
Maurice Bruynooghe · Lirias (KU Leuven) · 1980 · 70 citations · Full text
Garbage Collection in Prolog interpreters
Maurice Bruynooghe · Lirias (KU Leuven) · 1984 · 13 citations · Full text