Thread View: comp.lang.prolog
2 messages
2 total messages
Started by Gordon Royle
Tue, 15 Sep 1992 08:46
running out of stack space on a PC
Author: Gordon Royle
Date: Tue, 15 Sep 1992 08:46
Date: Tue, 15 Sep 1992 08:46
14 lines
979 bytes
979 bytes
I am trying to set a decent size project for my students, who use Arity Prolog on IBM-PCs. The trouble is that even the most modest Prolog program runs out of stack space more or less immediately. (For example, a Turing machine simulator that I got them to write only runs for a hundred or so steps before running out of space). Does anyone have any suggestions that might help? (this might be a DOS problem rather than a Prolog program, just knowing that fact might help a bit). Will a different Prolog (eg Prolog2) be better? Cheers gordon
Re: running out of stack space on a PC
Author: Michael A. Covington
Date: Tue, 15 Sep 1992 14:36
Date: Tue, 15 Sep 1992 14:36
9 lines
849 bytes
849 bytes
Are you familiar with how to make Prolog programs tail-recursive? Any recursive algorithm will run out of stack space if it recurses enough times, unless certain conditions are met. See O'Keefe's _The Craft of Prolog_ or my _Prolog Programming in Depth_. -- + Michael Covington - Artificial Intelligence Programs - U of Georgia - USA + Unless otherwise noted, these are private opinions, not official statements.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads