LinuxCommandLibrary

clisp

TLDR

Start interactive REPL

$ clisp
copy
Run a Lisp file
$ clisp [script.lisp]
copy
Evaluate an expression
$ clisp -x "(print \"Hello World\")"
copy
Load file and enter REPL
$ clisp -i [script.lisp]
copy
Compile a file to bytecode
$ clisp -c [source.lisp]
copy
Run without startup messages
$ clisp -q
copy
Set memory limits
$ clisp -m [100MB]
copy

SYNOPSIS

clisp [options] [files]

DESCRIPTION

CLISP is an implementation of ANSI Common Lisp, providing an interactive development environment and compiler. It features a bytecode compiler, interpreter, debugger, and CLOS (Common Lisp Object System) support.
The REPL (Read-Eval-Print Loop) provides interactive Lisp development with readline support, history, and completion. Files can be loaded, compiled to bytecode for faster execution, or combined into standalone executables.
CLISP includes extensive standard library support, foreign function interface (FFI) for calling C code, socket and networking functions, and internationalization support including Unicode.

PARAMETERS

-c file

Compile file to bytecode (.fas).
-x expression
Execute expression and exit.
-i file
Load file before entering REPL.
-o file
Output file for compilation.
-q, --quiet
Suppress banner and startup messages.
-m size
Set memory size limit.
-M file
Use memory image file.
-modern
Use modern (lowercase) symbol case.
-ansi
ANSI Common Lisp mode.
--help
Display help.
--version
Display version information.

CAVEATS

Bytecode is not portable across different CLISP versions or platforms. Some Common Lisp libraries may have compatibility issues. Performance is generally slower than compiled implementations like SBCL. The FFI syntax differs from other Lisp implementations.

HISTORY

CLISP was originally developed by Bruno Haible and Michael Stoll starting in 1987 at the University of Karlsruhe in Germany. It was designed to be portable and memory-efficient. The project has been maintained by various contributors over the decades and remains one of the most portable Common Lisp implementations, running on many platforms including Unix, Windows, and embedded systems.

SEE ALSO

sbcl(1), ecl(1), ccl(1), quicklisp(1)

Copied to clipboard