On Sun, Jan 23, 2011 at 10:17 PM, Juan Jose Garcia-Ripoll <juanjose.garciaripoll@googlemail.com> wrote:
$ cat maxima.lisp
(format t ";;; Frame stack limit ~D"
        (ext:set-limit 'ext:frame-stack (expt 2 14)))
(format t "~%;;; Binding stack limit ~D"
        (ext:set-limit 'ext:binding-stack (expt 2 17)))
(format t "~%;;; C stack limit ~D"
        (ext:set-limit 'ext:c-stack (expt 2 22)))
(format t "~%;;; Heap size limit ~D"
        (ext:set-limit 'ext:heap-size (expt 2 30)))
(format t "~%;;; Lisp stack limit ~D~%;;;"
        (ext:set-limit 'ext:lisp-stack (expt 2 18)))

Oliver, before using this code, you might want to update ECL. There was a typo in the implementation of SET-LIMIT and the EXT:FRAME-STACK option was not working properly. It is fixed in CVS/git


Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)