[CM] some CM questions

cristopher pierson ewing cewing@u.washington.edu
Fri, 4 Oct 2002 09:05:56 -0700 (PDT)


Dave,

I use ACL and CLISP, and each of those creates a different cm.something
file after you finish the second load.  This file is NOT intended to be
executable or binary.  It is a LISP image file that you use to start up
lisp.  In ACL or CLISP, the command is something like this:

ACL:
alisp -I directory/where/file/lives/cm.dxl
CLISP:
clisp -M directory/where/file/lives/cm.mem

I assume that the cm.core file that is being created by CMUCL is the
equivalent of these .dxl or .mem files.  All you need to find is the
command-line flag for CMUCL that allows you to use a particular LISP image
to start up.

Hope this helps,

C

********************************
Cris Ewing
CARTAH Assistant
University of Washington
Home Phone: (206) 365-3413
E-mail: cewing@u.washington.edu
*******************************


On Fri, 4 Oct 2002, Dave Phillips wrote:

> Greetings:
>
>   I'm using the latest CM with CMUCL 18d. It's pretty new to me, so I'm
> running into some dead ends and am looking for some help. Here are my
> immediate queries :
>
>   1) I open LISP, I run (load "src/cm.lisp") from ~/cm/ and everything
> goes perfectly. At the end of that load I read and obey the message that
> says :
>
> [snip]
> Byte Compiling Top-Level Form:
> ; Compiling "cm:src;html.lisp".
> ; Loading "cm:bin;HTML.x86f".
> ;; Loading #p"/home/dlphilp/cm-2.3.4/etc/handlers.lisp".
>
>
> ; Sources were compiled. To save Common Music
> ; quit and restart Lisp, then reload cm.lisp.
> T
> *
>
>     When I run (load "src/cm.lisp") again it creates a cm.core file in
> ~/cm/bin/ :
>
> ; [snip]
> ; Loading "cm:bin;HTML.x86f".
> ;; Loading #p"/home/dlphilp/cm-2.3.4/etc/handlers.lisp".
> [Doing purification: Done.]
> [Undoing binding stack... done]
> [Saving current lisp image into /home/dlphilp/cm-2.3.4/bin/cm.core:
> Writing 19130936 bytes from the Read-Only space at 0x10000000.
> Writing 3456872 bytes from the Static space at 0x28000000.
> Writing 4096 bytes from the Dynamic space at 0x48000000.
> done.]
>
>
>     'file cm.core' says it's just data, and giving it executable status
> with chmod +x doesn't work. When I try to run it the shell complains
> that it "cannot execute binary file". Any advice on all this ? From the
> README gather that I should be creating a binary, is that correct ? Or
> is there some other way I'm supposed to run cm.core ?
>
>   2) How do I inform CM that I want it to provide CLM output if I
> specify it ? And how do I specify that I want the output going to a CLM
> file ?
>
>   3) Is it possible to send CM output directly to CLM or CMN ? If so,
> how ?
>
>   4) Docs on using CM are rather sparse. I notice that Tobias's home has
> links to material but the links are no longer active. Can anyone
> recommend more tutorial pages ? I also have Nicky Hind's pages, btw.
>
>   Sorry for all the questions, I'm trying to get a lot of hands-on with
> CM and the other Common apps in a short time. Thanks for any and all
> assistance !
>
> Best regards,
>
> == Dave Phillips
>
> 	The Book Of Linux Music & Sound at http://www.nostarch.com/lms.htm
> 	The Linux Soundapps Site at http://linux-sound.org
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
>