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

  • Home
  • SEARCH
  • 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 7177525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:43:56+00:00 2026-05-28T16:43:56+00:00

(David James both wrote the question and an answer. I’ll edit it to conform

  • 0

(David James both wrote the question and an answer. I’ll edit it to conform to Stackoverflow standards.)

Using SBCL you can compile Lisp code to machine code.

Like Java, .net, C++ and even C you will need the runtime. So there are two ways to compile Common Lisp code.

First is to make huge binaries which is explained in SBCL documentation. No SBCL needed on target machine.

The other way is a more flexible one, which is to create machine code in a fasl (FASt Load) format. The SBCL runtime is needed on the target machine.

How does the second way work under a Unix-like operating system?

  • 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-28T16:43:57+00:00Added an answer on May 28, 2026 at 4:43 pm

    (Answer by David James:)

    We are going to make two commands in our system: one for batch compiling Lisp code and the other for easily running Lisp code:

    Using your favorite editor, open a file called sbcl.compile. The content should be:

        #!/bin/bash
        sbcl --noinform --eval "(compile-file \"$1\")" --eval "(quit)" > /dev/null
    

    Now to compile Lisp files use:

        # sbcl.compile hello.lisp
    

    This will create a hello.fasl file.

    Now to easily run these files, we create a new command. Using your favorite editor open a file called sbcl.run. The content should be:

        #!/bin/bash
        sbcl --noinform --load "$1" --quit --end-toplevel-options "$@"
    

    Now you may invoke sbcl.run hello.fasl to run the native code.

        # sbcl.run hello.fasl
    

    Details are described in the SBCL manual: Starting SBCL

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

Sidebar

Related Questions

I edited the question after David Hanak's answer (thanks btw!). He helped with the
from David W Fenton's answer to the SU question Does MS Access 2003 contain
Edit : Though I've accepted David's answer, Jon's answer should be considered as well.
Using David's answer here: Accordion - add arrow to each nav item? on my
David's answer to another question shows a Delphi DLL function returning a WideString. I
In THE Java™ Programming Language, Fourth Edition By Ken Arnold, James Gosling, David Holmes,
EDIT: Scotty2012 and David Morton's answers don't work for me so I have put
I'm using the David Walsh PHP calendar script and need to format my date
thanks guys.i managed to complete it.million thanks again specially for DAVID,WM-EDDIE and S.LOTT.also STACKOVERFLOW
Example XML using element nodes: <?xml version=1.0 encoding=utf-8?> <users> <user> <name>David Smith</name> <phone>0441 234443</phone>

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.