Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting sbcl注释“;无法堆叠“分配”;_Sorting_Stack_Common Lisp_Sbcl - Fatal编程技术网

Sorting sbcl注释“;无法堆叠“分配”;

Sorting sbcl注释“;无法堆叠“分配”;,sorting,stack,common-lisp,sbcl,Sorting,Stack,Common Lisp,Sbcl,为什么sbcl(2.0.11)会给出这些编译器注释?这是否意味着这不是一种有效的方法?您可以做些什么来堆栈分配谓词和键吗?还是另一种方法更好 (在轿厢上卸载分拣(x) (排序x’>:钥匙车) 最小可复制示例,应要求提供。该文件仅包含上述函数定义 $ /usr/bin/sbcl --no-sysinit --no-userinit This is SBCL 2.0.11, an implementation of ANSI Common Lisp. More information about

为什么sbcl(2.0.11)会给出这些编译器注释?这是否意味着这不是一种有效的方法?您可以做些什么来堆栈分配谓词和键吗?还是另一种方法更好

(在轿厢上卸载分拣(x)
(排序x’>:钥匙车)
最小可复制示例,应要求提供。该文件仅包含上述函数定义

$ /usr/bin/sbcl --no-sysinit --no-userinit
This is SBCL 2.0.11, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (compile-file "/tmp/sortwarning.lisp")
; compiling file "/tmp/sortwarning.lisp" (written 13 JAN 2021 09:50:06 AM):
; processing (DEFUN SORT-ON-CAR ...)
; file: /tmp/sortwarning.lisp
; in: DEFUN SORT-ON-CAR
;     (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::PREDICATE-FUN in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::KEY in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::PREDICATE-FUN in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::KEY in: (SORT X #'> :KEY #'CAR)
; 
; compilation unit finished
;   printed 4 notes


; wrote /tmp/sortwarning.fasl
; compilation finished in 0:00:00.050
#P"/tmp/sortwarning.fasl"
NIL
NIL
* 
$/usr/bin/sbcl--无sysinit--无userinit
这是SBCL 2.0.11,是ANSI Common Lisp的一个实现。
有关SBCL的更多信息,请访问。
SBCL是免费软件,按原样提供,绝对没有保修。
它主要是在公共领域;某些部分在以下章节中提供:
BSD风格的许可证。请参阅中的学分和复制文件
分发以获取更多信息。
*(编译文件“/tmp/sortwarning.lisp”)
; 编译文件“/tmp/sortwarning.lisp”(写于2021年1月13日09:50:06上午):
; 处理(车上卸载分拣…)
; 文件:/tmp/sortwarning.lisp
; in:卸载分拣车
;     (排序X’>:钥匙车)
; 
; 注意:无法在:(SORT X#'>:KEY#'CAR)中堆栈allocate SB-IMPL::PREDICATE-FUN
; 
; 注意:无法堆栈分配SB-IMPL::输入:(排序X'>:输入车)
; 
; 注意:无法在:(SORT X#'>:KEY#'CAR)中堆栈allocate SB-IMPL::PREDICATE-FUN
; 
; 注意:无法堆栈分配SB-IMPL::输入:(排序X'>:输入车)
; 
; 编译单元已完成
;   印制4张钞票
; 已写入/tmp/sortwarning.fasl
; 编译在0:00:00.050完成
#P“/tmp/sortwarning.fasl”
无
无
* 

这在我所能看到的SBCL 2.0.11或2.1.0中都无法复制。你能提供一个最小的可复制示例吗?问题经过编辑以添加最小的可复制示例。在Arch Linux上运行。我在2.1.0(和2.0.11)上尝试过这一点,但我已经没有了:我只能猜测您的
/usr/bin/sbcl
(或它使用的图像)不知怎么被破坏了(因为我不知道这些消息是如何发生的)。您是否尝试过从中进行干净的安装?干净的安装版本
2.1.0.43-8b5f058b5
给出了相同的行为。好吧,我不知道:您的环境在某种程度上一定很奇怪,因为SBCL没有对我说这一点(我甚至看不出有什么可以说服它这么说:它到底在尝试堆栈分配什么,为什么?)
$ /usr/bin/sbcl --no-sysinit --no-userinit
This is SBCL 2.0.11, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (compile-file "/tmp/sortwarning.lisp")
; compiling file "/tmp/sortwarning.lisp" (written 13 JAN 2021 09:50:06 AM):
; processing (DEFUN SORT-ON-CAR ...)
; file: /tmp/sortwarning.lisp
; in: DEFUN SORT-ON-CAR
;     (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::PREDICATE-FUN in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::KEY in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::PREDICATE-FUN in: (SORT X #'> :KEY #'CAR)
; 
; note: could not stack allocate SB-IMPL::KEY in: (SORT X #'> :KEY #'CAR)
; 
; compilation unit finished
;   printed 4 notes


; wrote /tmp/sortwarning.fasl
; compilation finished in 0:00:00.050
#P"/tmp/sortwarning.fasl"
NIL
NIL
*