6.1 About the Compiler
The Compiler provides the following types of messages and warnings:
"Compiling function..."
, which identifies the function that is being compiled.
compile
,compile-file
, orcompiler-options
with the keyword argument:messages
specified ast
.
"Reading source file..."
and"Writing binary file..."
, which identify the file that is being compiled.
compile
,compile-file
, orcompiler-options
with the keyword argument:file-messages
specified asnil
.
compile
,compile-file
, orcompiler-options
with the keyword argument:optimize-message
specified asnil
. If:optimize-message
is specified as:terse
, the Compiler displays terse mode messages.
special
, the Compiler issues a warning similar to the following:
> (defun bad-function (x) (+ x y)) BAD-FUNCTION> (compile 'bad-function) ;;; Warning: Free variable Y assumed to be special BAD-FUNCTION
compiler-options
, the functioncompile
, or the functioncompile-file
with the keyword argument:undef-warnings
specified asnil
:(compiler-options :undef-warnings nil)
ftype
declaration in the source code. For example, if you compile code containing the following declaration, the Compiler never issues an undefined function warning formy-function
, even if the function is undefined:(declare (ftype (function (t) t) my-function))
with-deferred-warnings
. This macro is especially useful when you are compiling many files. For example, the following expression defers undefined function warnings until all of the code inmy-file
andmy-other-file
has been executed:(with-deferred-warnings (compile-file "my-file") (compile-file "my-other-file"))Chapter 3, "Optimizing Lisp Programs" in The Advanced User's Guide describes
ftype
declarations and the macrowith-deferred-warnings
.
Generated with Harlequin WebMaker