2.1 Starting up Lisp

2.1.5 Saving Lisp images

You can save your programs by writing expressions into an editor file and saving the file. You can then load the saved file into an executing Lisp image by using the functionload. This function reads the specified file and evaluates each form in the file, just as though you had entered each form at the top-level prompt. You can save your entire Lisp environment, including user-defined functions or application packages, by using the function disksave. This function, which is an extension to Common Lisp, saves the current Lisp image on disk.

Once you have saved an image on disk, you can invoke that image by entering its name at the operating system prompt. For example, assume that you have used the functiondisksave to create an image namedmylisp. The following expression starts up themylisp image:

 % mylisp
For more information, see the reference page fordisksave in The Advanced User's Guide.


The User's Guide - 9 SEP 1996

Generated with Harlequin WebMaker