Justice, Randy writes:
> I trying to do some recursive memory searches. I have run into a couple of
> searches which require large amounts of memory. I understand that CLISP has
> an option of -m to allocate more memory.
> On the NT side, It does not seem to work at all. On NT, I get about 2000
> levels down before "Program Stack Overflow. RESET" regardless of the value
> by option -m.
> RedHat Linux seem to have a limit too. The -m10m gives me about 8000
> levels, -m20m gives me about 9500 levels, and -m40m has the same limit as
> How do I get more memory of CLISP to use? Or is there a bigger concept that
> I am missing?
CLISP cannot give you more than the default stack size of the
operating system, because the operating system generally doesn't allow
it. On Windows, the stack size needed by a program must be hardwired
in the executable (lisp.exe). On Unix, the maximum stack size is
changeable through the 'ulimit' shell builtin; its use might require
Therefore all you can do is
a) prefer iteration over recursion when you are iterating through
b) compile your lisp programs, then they eat less stack,
c) become superuser and use "ulimit -s" to change the stack size,
then su back to your normal identity and start clisp.