Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 723830890bac44da3d113209b14e090b > files > 639

sbcl-1.0.31-1mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Understanding Compiler Diagnostics - SBCL 1.0.31 User Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="SBCL 1.0.31 User Manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Diagnostic-Messages.html#Diagnostic-Messages" title="Diagnostic Messages">
<link rel="prev" href="Diagnostic-Severity.html#Diagnostic-Severity" title="Diagnostic Severity">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--

     This manual is part of the SBCL software system. See the `README'
     file for more information.

     This manual is largely derived from the manual for the CMUCL
     system, which was produced at Carnegie Mellon University and later
     released into the public domain. This manual is in the public
     domain and is provided with absolutely no warranty. See the
     `COPYING' and `CREDITS' files for more information.
   -->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Understanding-Compiler-Diagnostics"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Diagnostic-Severity.html#Diagnostic-Severity">Diagnostic Severity</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Diagnostic-Messages.html#Diagnostic-Messages">Diagnostic Messages</a>
<hr>
</div>

<!-- node-name,  next,  previous,  up -->
<h4 class="subsection">4.1.3 Understanding Compile Diagnostics</h4>

<p>The messages emitted by the compiler contain a lot of detail in a
terse format, so they may be confusing at first. The messages will be
illustrated using this example program:

<pre class="lisp">     (defmacro zoq (x)
       `(roq (ploq (+ ,x 3))))
     
     (defun foo (y)
       (declare (symbol y))
       (zoq y))
</pre>
   <p>The main problem with this program is that it is trying to add
<code>3</code> to a symbol. Note also that the functions <code>roq</code> and
<code>ploq</code> aren't defined anywhere.

<ul class="menu">
<li><a accesskey="1" href="The-Parts-of-a-Compiler-Diagnostic.html#The-Parts-of-a-Compiler-Diagnostic">The Parts of a Compiler Diagnostic</a>
<li><a accesskey="2" href="The-Original-and-Actual-Source.html#The-Original-and-Actual-Source">The Original and Actual Source</a>
<li><a accesskey="3" href="The-Processing-Path.html#The-Processing-Path">The Processing Path</a>
</ul>

   </body></html>