Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6027469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:35:52+00:00 2026-05-23T04:35:52+00:00

1) What is the proper method to make an image in ccl? Or what

  • 0

1) What is the proper method to make an image in ccl? Or what is the exact difference between:

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

2) Is there any possibility to load multiple images (command line prefered)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:35:53+00:00Added an answer on May 23, 2026 at 4:35 am

    The file compiler in Common Lisp systems creates a representation of the original source in some kind of machine language (depending on the target processor) or for some virtual machine (for example in CLISP). This compiled file then can be loaded into a running Lisp system with the LOAD function and creates the definitions of the source (functions, classes, variables, …) and executes other code in the file.

    One can load source files directly (also using the function LOAD). If the Lisp uses a compiler even for loading forms, the advantage of the file compiler is:

    • loading compiled code should be slightly faster
    • some error checking at compile time
    • possibly more aggressive compilation with faster code at runtime
    • code may be smaller (depends)

    Saving an image is independent. The image is a memory dump of a running Lisp. But generally not every state can be dumped depending on the Lisp system. Candidates of things that cannot be dumped to an image: file connections, network connections, open windows, … So, these things may need to be reopened when an image is started.

    If you want to start a Lisp application one has several options:

    • load all source code on startup
    • load all compiled code at startup
    • load an image with all code included

    The latter is likely the fastest. For many purposes now loading compiled code at startup is also fast enough, especially if starting only happens once in a while.

    Let’s look at your question again.

    (compile-file "foo.lisp")
    

    Above just compiles a single file to a compiled file (FASL file, ‘fast load’). The effect of the compilation is also that some information has been recorded in the Lisp system, but the definitions of the file are not available. You need to load the compiled file then.

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

    Above first loads the file. Note that a Lisp with an incremental compiler may compile some or all statements in that file (CCL and SBCL are doing that). SAVE-APPLICATION is a CCL specific function, which dumps the complete Lisp state (minus file connections, …) and creates an application which then can be started.

    If you want to create Lisp applications that start like other applications, SAVE-APPLICATION is the way to go.

    If multiple images can be loaded is system dependent. In CCL you can’t. On a Lisp Machine one could load a base image and then multiple incremental images on top of that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi friend i created this method for image select it working proper but i
what's the best/proper way of interacting between several windows in C# app? Recently, I've
I want to make a function that detects if a method exists for given
I'm trying to make a method that will tell me weather or not it
Is the proper way to make a few variables available to all my controllers
what is the proper incantation to make this actually post asynchronously? form_tag :controller =>
I've been looking for a proper way to get file associations working on WinXP
I would like to know the proper term for a method whose only reason
I wonder what is the proper pythonic backward- and forward-compatible method how check if
I just want to make sure I'm doing this in the proper pythonic way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.