给定以下简单的程序,你将如何操作:
compile it as a seperate image file to be loaded by the implementation, and what command line arguments would you use to load it?
Compile it as a standalone binary that can be loaded and run as is.
Note: I tried adding ":prepend-kernel t" when saving the application only to have the follow error thrown.
Error: value NIL is not of the expected type REAL. While executing: CCL::<-2, in process Initial(0).
How would you supress the welcome message?
The Program
(defun main () (format t "This is the program.")0)
编辑
很不情愿地回答自己的问题,但我还是找到了答案。
在函数加载后,键入以下内容进行编译:
(ccl:save-application "app")
这将创建一个图像文件。通过将其传递给实现类型来加载它(注意:'ccl'二进制文件在我的系统路径中);
ccl -I app
要运行顶级函数,请将其作为参数传递。
ccl -I app --eval (main)