Sökning: onr:"swepub:oai:DiVA.org:ri-21351" >
Variable shunting f...
Variable shunting for the WAM
-
- Sahlin, Dan (författare)
- RISE,SICS
-
- Carlsson, Mats (författare)
- RISE,Computer Systems Laboratory
-
(creator_code:org_t)
- 1
- Kista, Sweden : Swedish Institute of Computer Science, 1991
- Engelska 11 s.
-
Serie: SICS Research Report, 0283-3638 ; R91:07
- Relaterad länk:
-
https://ri.diva-port... (primary) (Raw object)
-
visa fler...
-
https://urn.kb.se/re...
-
visa färre...
Abstract
Ämnesord
Stäng
- This paper describes how to extend the garbage collection for WAM so that it will shunt chains of bound variables if possible. Doing so has two advantages: 1. Space is saved by making it possible to deallocate the intermediate cells. This is particularly useful when those cells are associated with frozen goals. 2. Later dereferencing is speeded up by not having to follow long variable chains. The main complication of this optimization is the treatment of the trailed variables. We claim that all possible chains of variables are shunted by this algorithm. The algorithm has been implemented in SICStus Prolog, and benchmark results are presented in this paper. The full source code for the shunting algorithm is given in this paper.
Ämnesord
- NATURVETENSKAP -- Data- och informationsvetenskap (hsv//swe)
- NATURAL SCIENCES -- Computer and Information Sciences (hsv//eng)
Publikations- och innehållstyp
- vet (ämneskategori)
- rap (ämneskategori)