Dear concerns:
I am running CMUCL on the Linux machine. But I got
some questions and meet some
problems I cannot solve. So could you please give me
some advice?
1. How can I exit from CMUCL after it started?
2. Can CMUCL support automatically run a command
script when it starts up?
Suppose we have a file named �my-init-run� include
lisp command like:
(load �file1.lisp�)
(load �file2.lisp)
(myfunction parameter1 parameter2)
I am just wondering whether CMUCL can load and run
the �my-init-run"
automatically when it starts.
3. I am going to call C function from CMUCL. I input
the �Step-by-Step Alien
Example� in the chapter 8 .8 of user manual, but I met
two problems.
The first one is about the (load-foreign �test.o�).
When I first time execute
this on Top-level, I always got the error information
like:
{
Error in function SYSTEM::ENSURE-LISP-TABLE-OPENED:
Can�t open global symbol table: �:
cannot map file data:
Operation not supported by device�
Restarts:
0: [ABORT] Return to Top-level.
Debug: (type H for help)
(SYSTEM::ENSURE-LISP-TABLE-OPENED)
Source: Error finding source
Error in function COMMON-LISP::%ENUMERATE-SEARCH-LIST:
Undefined search list: trunk
}
But after I choose ABORT to Top-level and execute
(load-foreign �test.o�)
again. It will success.
The second problem is about the �(free-alien res)�
which is the last line of
the test.lisp (Step-by-Step Alien Example). If I
include this free function I
will got error message like:
{
Error in function UNIX::SINGSEGV-HANDLER: Segmentation
Violation at #1200286b8.
Restarts:
0: [ABOUT] Return to Top-level.
Debug (type H for help)
(UNIX::SIGSEGV-HANDLER #<unavailable-arg>
#< unavailable-arg >
#.(SYSTEM::INT-SAP #x11ffff560))
}
But If I get rid of it from the lisp program,
everything seems ok.
Thank you so much for your helping and looking forward
to your reply
Jun Chen
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com