| 1 |
.TH ecl 1 2021-02-01 |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
ecl -- Embeddable Common Lisp |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
|
| 8 |
\fBecl\fP |
| 9 |
[\fB-?\fP | \fB--help\fP] [\fB-v\fP | \fB--version\fP] [\fB--debug\fP | \fB--nodebug\fP] |
| 10 |
.br |
| 11 |
[\fB--dir\fP \fIdir\fP] [\fB--load\fP \fIfile\fP] [\fB--shell\fP \fIfile\fP] [\fB--eval\fP \fIexpr\fP] [\fB--rc\fP | \fB--norc\fP] |
| 12 |
.br |
| 13 |
[\fB--c-stack\fP \fIsize\fP] [\fB--lisp-stack\fP \fIsize\fP] [\fB--heap-size\fP \fIsize\fP] |
| 14 |
.br |
| 15 |
[\fB--frame-stack\fP \fIsize\fP] |
| 16 |
.br |
| 17 |
[[\fB-o\fP \fIofile\fP] [\fB-c\fP [\fIcfile\fP]] [\fB-h\fP [\fIhfile\fP]] [\fB--data\fP [\fIdatafile\fP]] [\fB-s\fP] [\fB-q\fP] |
| 18 |
.br |
| 19 |
\fB--compile\fP \fIfile\fP] |
| 20 |
.br |
| 21 |
[[\fB-o\fP \fIofile\fP] \fB--link\fP \fIfile+\fP] |
| 22 |
.br |
| 23 |
[\fB--input-encoding\fP \fIexternal-format\fP] [\fB--output-encoding\fP \fIexternal-format\fP] |
| 24 |
.br |
| 25 |
[\fB--error-encoding\fP \fIexternal-format\fP] [\fB--encoding\fP \fIexternal-format\fP] |
| 26 |
.br |
| 27 |
[\fB--trap-fpe\fP | \fB--no-trap-fpe\fP] |
| 28 |
.br |
| 29 |
|
| 30 |
\" \fBDEPRECATION NOTE:\fP one-dash versions of long flags(e.g. \fB-eval\fP or \fB-data\fP) are deprecated; you should use two-dash versions (e.g. \fB--eval\fP or \fB--data\fP) now. |
| 31 |
|
| 32 |
.SH DESCRIPTION |
| 33 |
|
| 34 |
ECL (Embeddable Common-Lisp) is an interpreter of the Common-Lisp language as described in the |
| 35 |
X3J13 ANSI specification, featuring CLOS (Common-Lisp Object System), conditions, loops, |
| 36 |
etc. plus a translator to C, which can produce standalone executables. |
| 37 |
|
| 38 |
ECL supports the operating systems Linux, FreeBSD, NetBSD, OpenBSD, OS\~X, Solaris and Windows, |
| 39 |
running on top of the Intel, Sparc, Alpha, PowerPC and ARM processors. |
| 40 |
|
| 41 |
.PP |
| 42 |
The current ECL implementation features: |
| 43 |
.IP \(bu |
| 44 |
A bytecode compiler and interpreter. |
| 45 |
.IP \(bu |
| 46 |
Compiles Lisp also with any C/C++ compiler |
| 47 |
.IP \(bu |
| 48 |
Can build standalone executables and libraries |
| 49 |
.IP \(bu |
| 50 |
ASDF, Sockets, Gray streams, MOP, and other useful components |
| 51 |
.IP \(bu |
| 52 |
Extremely portable |
| 53 |
.IP \(bu |
| 54 |
A reasonable license |
| 55 |
.PP |
| 56 |
\fBecl\fP without any argument starts the interactive lisp session. |
| 57 |
|
| 58 |
.SH OPTIONS |
| 59 |
.TP 3 |
| 60 |
.B \-?, \-\-help |
| 61 |
Shows the help prompt without running the ECL. |
| 62 |
.TP 3 |
| 63 |
.B \-v, \-\-version, |
| 64 |
Prints the current version of ECL, without running the ECL. |
| 65 |
.TP 3 |
| 66 |
.B \-\-debug |
| 67 |
Turned on by default, this enables the debugging in the setup phase, |
| 68 |
so that you can debug your files. |
| 69 |
.TP 3 |
| 70 |
.B \-\-nodebug |
| 71 |
Run without debugging setup phase, meaning that errors prevent ECL from starting up. |
| 72 |
.TP 3 |
| 73 |
.B \-\-dir\~\fIdirectory\fP |
| 74 |
Use \fIdirectory\fP as a system directory. |
| 75 |
.TP 3 |
| 76 |
.B \-\-load\~\fIfile\fP |
| 77 |
Load source \fIfile\fP before loading the \fB.rc\fP file and starting the toplevel. |
| 78 |
.TP 3 |
| 79 |
.B \-\-shell\~\fIfile\fP |
| 80 |
Executes the given \fIfile\fP and exits, without providing a read-eval-print loop. |
| 81 |
If you want to use lisp as a scripting language, you can write |
| 82 |
.BR "#!@bindir@/ecl --shell" |
| 83 |
on the first line of the file to be executed, and then ECL will be |
| 84 |
automatically invoked. |
| 85 |
.TP 3 |
| 86 |
.B \-\-eval\~\fIfile\fP |
| 87 |
Evaluate the \fIfile\fP before loading the \fB.rc\fP file and starting the Top Level. |
| 88 |
.TP 3 |
| 89 |
.B \-\-rc |
| 90 |
Load configuration files at startup (default). |
| 91 |
.TP 3 |
| 92 |
.B \-\-norc |
| 93 |
Do not load configuration files at startup. |
| 94 |
.TP 3 |
| 95 |
.B \-\-c\-stack\~\fIsize\fP |
| 96 |
Set C stack \fIsize\fP in bytes for C compiler. |
| 97 |
.TP 3 |
| 98 |
.B \-\-lisp\-stack\~\fIsize\fP |
| 99 |
Set stack \fIsize\fP in bytes for bytecodes interpreter. |
| 100 |
.TP 3 |
| 101 |
.B \-\-heap\-stack\~\fIsize\fP |
| 102 |
Set heap \fIsize\fP in bytes. |
| 103 |
.TP 3 |
| 104 |
.B \-\-frame\-stack\~\fIsize\fP |
| 105 |
Set frame stack \fIsize\fP in bytes for runtime control structures. |
| 106 |
.TP 3 |
| 107 |
.B \-o\~\fIfile\fP |
| 108 |
Provide the output target \fIfile\fP for compilation. |
| 109 |
.TP 3 |
| 110 |
.B \-c\~\fIcfile\fP |
| 111 |
When compiling name the intermediary \fI*.c\fP file \fIcfile\fP and do not delete it afterwards. |
| 112 |
.TP 3 |
| 113 |
.B \-h\~\fIhfile\fP |
| 114 |
When compiling name the intermediary \fI*.h\fP file \fIhfile\fP and do not delete it afterwards. |
| 115 |
.TP 3 |
| 116 |
.B \-\-data\~[\fIdatafile\fP] |
| 117 |
Dumps compiler data into \fIdatafile\fP or, if not |
| 118 |
supplied, into a file named after the source file, but |
| 119 |
with \fI.data\fP as extension. |
| 120 |
.TP 3 |
| 121 |
.B \-s |
| 122 |
Produce a linkable object file. It cannot be loaded |
| 123 |
with \fB(load)\fP, but it can be used to build libraries |
| 124 |
or standalone executable programs. |
| 125 |
.TP 3 |
| 126 |
.B \-q |
| 127 |
Short for quiet -- produce less notes. |
| 128 |
.TP 3 |
| 129 |
.B \-\-compile\~\fIfile\fP |
| 130 |
Translates \fIfile\fP to C and invokes the local C compiler to produce |
| 131 |
a native code program. |
| 132 |
.TP 3 |
| 133 |
.B \-\-link\~\fIfile+\fP |
| 134 |
Create standalone executable from Lisp files \fIfile+\fP. |
| 135 |
.TP 3 |
| 136 |
.B \-\-input-encoding\~\fIencoding\fP |
| 137 |
Specify the external \~\fIencoding\fP for standard input. |
| 138 |
.TP 3 |
| 139 |
.B \-\-output-encoding\~\fIencoding\fP |
| 140 |
Specify the external \~\fIencoding\fP for standard output. |
| 141 |
.TP 3 |
| 142 |
.B \-\-error-encoding\~\fIencoding\fP |
| 143 |
Specify the external \~\fIencoding\fP for standard error. |
| 144 |
.TP 3 |
| 145 |
.B \-\-encoding\~\fIencoding\fP |
| 146 |
Specify the external \~\fIencoding\fP for standard input, output, trace and error. |
| 147 |
.TP 3 |
| 148 |
.B \-\-trap-fpe |
| 149 |
Make ECL debugger catch floating point exception. |
| 150 |
.TP 3 |
| 151 |
.B \-\-no-trap-fpe |
| 152 |
Disable ECL debugger floating point exception catching. |
| 153 |
|
| 154 |
.SH AUTHORS |
| 155 |
|
| 156 |
The original version was developed by Giuseppe Attardi starting from |
| 157 |
the Kyoto Common Lisp implementation by Taiichi Yuasa, Masami |
| 158 |
Hagiya. Further development was lead by Juan Jose Garcia Ripoll. The |
| 159 |
current maintainers of ECL are Daniel Kochmański and Marius Gerbershagen, |
| 160 |
who can be reached at the ECL mailing list. |
| 161 |
|
| 162 |
.SH FILES |
| 163 |
|
| 164 |
.TP |
| 165 |
.I ~/.ecl, ~/.eclrc |
| 166 |
Default initialization files loaded at startup unless the option \fB\-\-norc\fP |
| 167 |
is provided (if they exist). |
| 168 |
|
| 169 |
.SH SEE ALSO |
| 170 |
.IP |
| 171 |
ANSI Common Lisp standard X3.226-1994 |
| 172 |
.IP |
| 173 |
The Common Lisp HyperSpec |
| 174 |
|
| 175 |
.SH BUGS |
| 176 |
Unfortunately it is possible that there are some bugs in the program. |
| 177 |
In case you find any bug, please report it as an issue (after making sure that it hasn't been reported or fixed) |
| 178 |
to official gitlab repository: |
| 179 |
.UR https://gitlab.com/embeddable-common-lisp/ecl/issues |
| 180 |
.UE |
| 181 |
. |
| 182 |
|
| 183 |
.SH LICENSE |
| 184 |
|
| 185 |
This library is free software; you can redistribute it and/or modify it under |
| 186 |
the terms of the GNU Lesser General Public License as published by the Free |
| 187 |
Software Foundation; either version 2.1 of the License, or (at your option) any |
| 188 |
later version. |
| 189 |
|
| 190 |
This library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 191 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 192 |
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 193 |
|
| 194 |
You should have received a copy of the GNU Lesser General Public License along |
| 195 |
with this library; if not, write to the Free Software Foundation, Inc., 51 |
| 196 |
Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 197 |
|
| 198 |
Please report bugs, comments, suggestions to the ecl mailing list: |
| 199 |
.MT [email protected] |
| 200 |
.ME |
| 201 |
(or use gitlab). |