Image Processing in Clozure Cl

1) What is the correct way to create an image in ccl? Or what's the difference between:

(compile-file "foo.lisp")and (progn (load "foo.lisp") (save-application "foo"))?

2) Is it possible to upload multiple images (preferred command line)?

+3
source share
2 answers

A file compiler on Common Lisp systems creates a representation of the source source in some machine languages ​​(depending on the target processor) or on some virtual machine (for example, in CLISP). Then this compiled file can be loaded into the running Lisp system with the LOAD function and created source definitions (functions, classes, variables, etc.) and another code in the file executed.

( LOAD). Lisp , :

  • ()

. Lisp. Lisp. , : , , ... , , , .

Lisp, :

, , . , .

.

(compile-file "foo.lisp")

( FASL, " " ). , Lisp, . .

(progn (load "foo.lisp") (save-application "foo"))

. , Lisp (CCL SBCL ). SAVE-APPLICATION - CCL, Lisp ( ,...) , .

Lisp, , SAVE-APPLICATION - .

. CCL . Lisp , .

+5

compile-file , : . , compile-file, load. - , .

, Lisp, Lisp ( ), , Lisp . , (ccl:save-application "image_name"), image_name - , . Clozure CL -I.

, , , , , . ASDF.

+5

All Articles