通过 Emacs 启动时如何配置 SBCL 以使用更多 RAM?
如何配置 SBCL,使其在使用 Emacs 中的“Mx slime”启动时使用比默认值更多的内存?
从我在网上看到的情况来看,答案似乎是调用 SBCL,传递参数“--dynamic-space-size
我在 Windows 7 上使用 GNU Emacs 22.3.1 和 SBCL 1.0.48。我没有配置经验,所以新手的介绍将不胜感激。
How can I configure SBCL so that it uses more memory than the default when I start it by using "M-x slime" in Emacs?
From what I've seen online, the answer appears to be to call SBCL, passing the argument "--dynamic-space-size <size in MB>". Since I do not call SBCL directly, I do not know how to pass it arguments.
I am using GNU Emacs 22.3.1 and SBCL 1.0.48 on Windows 7. I have no experience configuring either, so a novice's introduction would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在 Debian scrape 上使用 SLIME 1:20120420-2。 Kilian 的答案 Foth 从此版本起不再工作。我写信给 slime-devel 并被告知
所以,如果有人想检查
slime-lisp-implementations
的值是什么事实证明,
slime-lisp-implementations
对我来说的价值是所以,我将以下内容放入我的
~/.emacs
关于它的设置位置
在此版本的 SLIME 中,
slime-lisp-implementations
在/ 中设置usr/share/emacs/site-lisp/slime/slime.el
。有关
slime-lisp-implementations
的文档,请参阅Slime 手册:2.5.2 多个 Lisp
或使用 Mx 描述变量。
上面的所有引用均来自线程 setting heap size for SBCL for use with SLIME
在史莱姆开发上。
I'm using SLIME 1:20120420-2 on Debian squeeze. The answer by Kilian Foth does not work as of this version. I wrote to slime-devel and was told
So, if one wants to check what the value of
slime-lisp-implementations
isAs it turns out, the value of
slime-lisp-implementations
for me wasSo, I put the following in my
~/.emacs
With regards to where this was set
In this version of SLIME,
slime-lisp-implementations
is set in/usr/share/emacs/site-lisp/slime/slime.el
.For documentation of
slime-lisp-implementations
, see theSlime Manual: 2.5.2 Multiple Lisps
or use M-x describe-variable.
All quotes above are from the thread setting heap size for SBCL for use with SLIME
on slime-devel.
通常的方法是将变量
inferior-lisp-program
的值设置为您想要执行的命令,包括您想要提供的任何选项。我现在没有 emacs,但这可能就足够了:The usual way is to set the value of the variable
inferior-lisp-program
to the command you want executed, including any options you want to give. Don't have an emacs on me right now, but this might be enough: