home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / prolog / 1621 < prev    next >
Encoding:
Text File  |  1992-08-29  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.lang.prolog
  2. Path: sparky!uunet!mcsun!sunic!sics.se!roland
  3. From: roland@sics.se (Roland Karlsson)
  4. Subject: Re: The Effect of the Cut on Prolog Stack
  5. In-Reply-To: reidld@ecf.toronto.edu's message of Thu, 27 Aug 1992 21:26:49 GMT
  6. Message-ID: <ROLAND.92Aug29152131@helicon.sics.se>
  7. Sender: news@sics.se
  8. Organization: Swedish Institute of Computer Science, Kista
  9. References: <BtnvKp.4nD@ecf.toronto.edu>
  10. Date: Sat, 29 Aug 1992 14:21:31 GMT
  11. Lines: 19
  12.  
  13.  
  14. The cut operation in the WAM implementation of Prolog does not in it
  15. self reduce the amount of used global stack.  But a garbage collection
  16. does reclaim the space.
  17.  
  18. so
  19. ...  test,!,garbage_collect,test ...
  20.  
  21. is a way (in SICStus) to just use X global stack space.
  22.  
  23. (It is not always true.  Undo, setarg .. etc can make it hard to
  24. reclaim everything.)
  25.  
  26.  
  27. Roland Karlsson
  28. --
  29. Roland Karlsson             SICS, PO Box 1263, S-164 28 KISTA, SWEDEN
  30. Internet: roland@sics.se    Tel: +46 8 752 15 40          Fax: +46 8 751 72 30
  31. Telex: 812 6154 7011 SICS   Ttx: 2401-812 6154 7011=SICS
  32.