Re: help with dynamic-space-size
André A. Gomes <[email protected]> Mon, 02 Feb 2026 20:02:34 +0200
| Newsgroups | gmane.lisp.steel-bank.general |
|---|---|
| Message-ID | <[email protected]> |
Greg Bennett <[email protected]> writes: > Thanks for this Andre'. emacs tells me > > user-init-file is a variable defined in ‘C source code’. > > Its value is "/home/gwbennett/.emacs.d/init.el" > > Here are its current contents: > (load (expand-file-name "~/quicklisp/slime-helper.el")) > (setq inferior-lisp-program "sbcl --dynamic-space-size 3072") > > Starting emacs and evaluating (/ (dynamic-space-size) (expt 1024 3)) returns 1 > rather than 3 Perhaps the issue is inferior-lisp-program doesn't handle CLI options gracefully. Try setting slime-lisp-implementations as below: (setq slime-lisp-implementations `((my-sbcl ("sbcl" "--dynamic-space-size" "3072")))) Then you should be able to choose the my-sbcl implementation when issuing the slime command from Emacs. The command may require a prefix arg, I can't be precise since I use SLY instead of Slime (just use Emacs' describe-symbol command to inspect the slime command). By the way, another way to achieve this goal is to add the following to your .sbclrc file. --8<---------------cut here---------------start------------->8--- ;; An alternative to starting sbcl via sbcl --dynamic-space-size <megabytes>. (sb-alien:define-alien-variable ("dynamic_space_size" *sbcl%dynamic-space-size*) sb-alien:unsigned) (defconstant +MB+ (expt 1024 2)) (setf *sbcl%dynamic-space-size* (* 3072 +MB+)) --8<---------------cut here---------------end--------------->8--- -- André A. Gomes "You cannot even find the ruins..." _______________________________________________ Sbcl-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-help