-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
16048 lines (14647 loc) · 899 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- 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. -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SBCL 1.4.4.132.master.1-58bd53a58-dirty User Manual</title>
<meta name="description" content="SBCL 1.4.4.132.master.1-58bd53a58-dirty User Manual">
<meta name="keywords" content="SBCL 1.4.4.132.master.1-58bd53a58-dirty User Manual">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="#Top" rel="start" title="Top">
<link href="#Concept-Index" rel="index" title="Concept Index">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<link href="dir.html#Top" rel="up" title="(dir)">
<style type="text/css">
<!--
/*
* Based on version 1.0.1 of the texinfo-css stylesheet published by
* sirgazil (https://bitbucket.org/sirgazil/texinfo-css).
*
* Public domain 2016 sirgazil. All rights waived.
*/
/* NATIVE ELEMENTS */
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
a:link,
a:visited {
color: #1E90FF;
text-decoration: none;
}
a:active,
a:focus,
a:hover {
text-decoration: underline;
}
abbr,
acronym {
cursor: help;
}
blockquote {
color: #555753;
font-style: oblique;
margin: 30px 0px;
padding-left: 3em;
}
body {
background-color: white;
box-shadow: 0 0 2px gray;
box-sizing: border-box;
color: #333;
font-family: sans-serif;
font-size: 16px;
margin: 50px auto;
max-width: 70em; /*960px;*/
padding: 50px;
}
code,
samp,
tt,
var {
color: purple;
font-size: 0.8em;
}
div.example,
div.lisp {
margin: 0px;
}
dl {
margin: 3em 0em;
}
dl dl {
margin: 0em;
}
dt {
background-color: #F5F5F5;
padding: 0.5em;
}
h1,
h2,
h2.contents-heading,
h3,
h4 {
padding: 20px 0px 0px 0px;
font-weight: normal;
}
h1 {
font-size: 2.4em;
}
h2 {
font-size: 2.2em;
font-weight: bold;
}
h3 {
font-size: 1.8em;
}
h4 {
font-size: 1.4em;
}
hr {
background-color: silver;
border-style: none;
height: 1px;
margin: 0px;
}
html {
background-color: #F5F5F5;
}
img {
max-width: 100%;
}
li {
padding: 5px;
}
div.display,
div.example,
div.format,
div.lisp,
div.verbatim {
overflow: auto;
}
div.example,
div.lisp,
div.verbatim {
background-color: #F5F5F5; /* #2D3743;*/
border-color: #000;
border-style: solid;
border-width: thin;
/*color: #E1E1E1;*/
font-size: smaller;
padding: 1em;
}
pre {
padding: 0;
margin: 0 0 1em 0;
}
pre:last-of-type {
margin: 0 0 0 0;
}
table {
border-collapse: collapse;
margin: 40px 0px;
}
table.index-cp *,
table.index-fn *,
table.index-ky *,
table.index-pg *,
table.index-tp *,
table.index-vr * {
background-color: inherit;
border-style: none;
}
td,
th {
border-color: silver;
border-style: solid;
border-width: thin;
padding: 10px;
}
th {
background-color: #F5F5F5;
}
/* END NATIVE ELEMENTS */
/* CLASSES */
.contents {
margin-bottom: 4em;
}
.float {
margin: 3em 0em;
}
.float-caption {
font-size: smaller;
text-align: center;
}
.float > img {
display: block;
margin: auto;
}
.footnote {
font-size: smaller;
margin: 5em 0em;
}
.footnote h3 {
display: inline;
font-size: small;
}
.key {
color: purple;
font-size: 0.8em;
}
/* END CLASSES */
.header {
display: none;
}
.menu {
display: none;
}
-->
</style>
</head>
<body lang="en">
<h1 class="settitle" align="center">SBCL 1.4.4.132.master.1-58bd53a58-dirty User Manual</h1>
<a name="SEC_Contents"></a>
<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
<ul class="no-bullet">
<li><a name="toc-Getting-Support-and-Reporting-Bugs-1" href="#Getting-Support-and-Reporting-Bugs">1 Getting Support and Reporting Bugs</a>
<ul class="no-bullet">
<li><a name="toc-Volunteer-Support-1" href="#Volunteer-Support">1.1 Volunteer Support</a></li>
<li><a name="toc-Commercial-Support-1" href="#Commercial-Support">1.2 Commercial Support</a></li>
<li><a name="toc-Reporting-Bugs-1" href="#Reporting-Bugs">1.3 Reporting Bugs</a>
<ul class="no-bullet">
<li><a name="toc-How-to-Report-Bugs-Effectively" href="#How-to-Report-Bugs-Effectively">1.3.1 How to Report Bugs Effectively</a></li>
<li><a name="toc-Signal-Related-Bugs" href="#Signal-Related-Bugs">1.3.2 Signal Related Bugs</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Introduction-1" href="#Introduction">2 Introduction</a>
<ul class="no-bullet">
<li><a name="toc-ANSI-Conformance-1" href="#ANSI-Conformance">2.1 ANSI Conformance</a></li>
<li><a name="toc-Extensions-1" href="#Extensions">2.2 Extensions</a></li>
<li><a name="toc-Idiosyncrasies-1" href="#Idiosyncrasies">2.3 Idiosyncrasies</a>
<ul class="no-bullet">
<li><a name="toc-Declarations-1" href="#Declarations">2.3.1 Declarations</a></li>
<li><a name="toc-FASL-Format-1" href="#FASL-Format">2.3.2 FASL Format</a></li>
<li><a name="toc-Compiler_002donly-Implementation-1" href="#Compiler_002donly-Implementation">2.3.3 Compiler-only Implementation</a></li>
<li><a name="toc-Defining-Constants-1" href="#Defining-Constants">2.3.4 Defining Constants</a></li>
<li><a name="toc-Style-Warnings-1" href="#Style-Warnings">2.3.5 Style Warnings</a></li>
</ul></li>
<li><a name="toc-Development-Tools-1" href="#Development-Tools">2.4 Development Tools</a>
<ul class="no-bullet">
<li><a name="toc-Editor-Integration-1" href="#Editor-Integration">2.4.1 Editor Integration</a></li>
<li><a name="toc-Language-Reference-1" href="#Language-Reference">2.4.2 Language Reference</a></li>
<li><a name="toc-Generating-Executables-1" href="#Generating-Executables">2.4.3 Generating Executables</a></li>
</ul></li>
<li><a name="toc-More-SBCL-Information-1" href="#More-SBCL-Information">2.5 More SBCL Information</a>
<ul class="no-bullet">
<li><a name="toc-SBCL-Homepage-1" href="#SBCL-Homepage">2.5.1 SBCL Homepage</a></li>
<li><a name="toc-Online-Documentation-1" href="#Online-Documentation">2.5.2 Online Documentation</a></li>
<li><a name="toc-Additional-Documentation-Files-1" href="#Additional-Documentation-Files">2.5.3 Additional Documentation Files</a></li>
<li><a name="toc-Internals-Documentation-1" href="#Internals-Documentation">2.5.4 Internals Documentation</a></li>
</ul></li>
<li><a name="toc-More-Common-Lisp-Information-1" href="#More-Common-Lisp-Information">2.6 More Common Lisp Information</a>
<ul class="no-bullet">
<li><a name="toc-Internet-Community-1" href="#Internet-Community">2.6.1 Internet Community</a></li>
<li><a name="toc-Third_002dparty-Libraries-1" href="#Third_002dparty-Libraries">2.6.2 Third-party Libraries</a></li>
<li><a name="toc-Common-Lisp-Books-1" href="#Common-Lisp-Books">2.6.3 Common Lisp Books</a></li>
</ul></li>
<li><a name="toc-History-and-Implementation-of-SBCL-1" href="#History-and-Implementation-of-SBCL">2.7 History and Implementation of SBCL</a></li>
</ul></li>
<li><a name="toc-Starting-and-Stopping-1" href="#Starting-and-Stopping">3 Starting and Stopping</a>
<ul class="no-bullet">
<li><a name="toc-Starting-SBCL-1" href="#Starting-SBCL">3.1 Starting SBCL</a>
<ul class="no-bullet">
<li><a name="toc-From-Shell-to-Lisp" href="#Running-from-Shell">3.1.1 From Shell to Lisp</a></li>
<li><a name="toc-Running-from-Emacs-1" href="#Running-from-Emacs">3.1.2 Running from Emacs</a></li>
<li><a name="toc-Shebang-Scripts-1" href="#Shebang-Scripts">3.1.3 Shebang Scripts</a></li>
</ul></li>
<li><a name="toc-Stopping-SBCL-1" href="#Stopping-SBCL">3.2 Stopping SBCL</a>
<ul class="no-bullet">
<li><a name="toc-Exit-1" href="#Exit">3.2.1 Exit</a></li>
<li><a name="toc-End-of-File-1" href="#End-of-File">3.2.2 End of File</a></li>
<li><a name="toc-Saving-a-Core-Image-1" href="#Saving-a-Core-Image">3.2.3 Saving a Core Image</a></li>
<li><a name="toc-Exit-on-Errors-1" href="#Exit-on-Errors">3.2.4 Exit on Errors</a></li>
</ul></li>
<li><a name="toc-Command-Line-Options-1" href="#Command-Line-Options">3.3 Command Line Options</a>
<ul class="no-bullet">
<li><a name="toc-Runtime-Options-1" href="#Runtime-Options">3.3.1 Runtime Options</a></li>
<li><a name="toc-Toplevel-Options-1" href="#Toplevel-Options">3.3.2 Toplevel Options</a></li>
</ul></li>
<li><a name="toc-Initialization-Files-1" href="#Initialization-Files">3.4 Initialization Files</a></li>
<li><a name="toc-Initialization-and-Exit-Hooks-1" href="#Initialization-and-Exit-Hooks">3.5 Initialization and Exit Hooks</a></li>
</ul></li>
<li><a name="toc-Compiler-1" href="#Compiler">4 Compiler</a>
<ul class="no-bullet">
<li><a name="toc-Diagnostic-Messages-1" href="#Diagnostic-Messages">4.1 Diagnostic Messages</a>
<ul class="no-bullet">
<li><a name="toc-Controlling-Verbosity-1" href="#Controlling-Verbosity">4.1.1 Controlling Verbosity</a></li>
<li><a name="toc-Diagnostic-Severity-1" href="#Diagnostic-Severity">4.1.2 Diagnostic Severity</a></li>
<li><a name="toc-Understanding-Compile-Diagnostics" href="#Understanding-Compiler-Diagnostics">4.1.3 Understanding Compile Diagnostics</a>
<ul class="no-bullet">
<li><a name="toc-The-Parts-of-a-Compiler-Diagnostic-1" href="#The-Parts-of-a-Compiler-Diagnostic">4.1.3.1 The Parts of a Compiler Diagnostic</a></li>
<li><a name="toc-The-Original-and-Actual-Source-1" href="#The-Original-and-Actual-Source">4.1.3.2 The Original and Actual Source</a></li>
<li><a name="toc-The-Processing-Path-1" href="#The-Processing-Path">4.1.3.3 The Processing Path</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Handling-of-Types-1" href="#Handling-of-Types">4.2 Handling of Types</a>
<ul class="no-bullet">
<li><a name="toc-Declarations-as-Assertions-1" href="#Declarations-as-Assertions">4.2.1 Declarations as Assertions</a></li>
<li><a name="toc-Precise-Type-Checking-1" href="#Precise-Type-Checking">4.2.2 Precise Type Checking</a></li>
<li><a name="toc-Getting-Existing-Programs-to-Run-1" href="#Getting-Existing-Programs-to-Run">4.2.3 Getting Existing Programs to Run</a></li>
<li><a name="toc-Implementation-Limitations-1" href="#Implementation-Limitations">4.2.4 Implementation Limitations</a></li>
</ul></li>
<li><a name="toc-Compiler-Policy-1" href="#Compiler-Policy">4.3 Compiler Policy</a></li>
<li><a name="toc-Compiler-Errors-1" href="#Compiler-Errors">4.4 Compiler Errors</a>
<ul class="no-bullet">
<li><a name="toc-Type-Errors-at-Compile-Time-1" href="#Type-Errors-at-Compile-Time">4.4.1 Type Errors at Compile Time</a></li>
<li><a name="toc-Errors-During-Macroexpansion-1" href="#Errors-During-Macroexpansion">4.4.2 Errors During Macroexpansion</a></li>
<li><a name="toc-Read-Errors-1" href="#Read-Errors">4.4.3 Read Errors</a></li>
</ul></li>
<li><a name="toc-Open-Coding-and-Inline-Expansion-1" href="#Open-Coding-and-Inline-Expansion">4.5 Open Coding and Inline Expansion</a></li>
<li><a name="toc-Interpreter-1" href="#Interpreter">4.6 Interpreter</a></li>
</ul></li>
<li><a name="toc-Debugger-1" href="#Debugger">5 Debugger</a>
<ul class="no-bullet">
<li><a name="toc-Debugger-Entry-1" href="#Debugger-Entry">5.1 Debugger Entry</a>
<ul class="no-bullet">
<li><a name="toc-Debugger-Banner-1" href="#Debugger-Banner">5.1.1 Debugger Banner</a></li>
<li><a name="toc-Debugger-Invocation-1" href="#Debugger-Invocation">5.1.2 Debugger Invocation</a></li>
</ul></li>
<li><a name="toc-Debugger-Command-Loop-1" href="#Debugger-Command-Loop">5.2 Debugger Command Loop</a></li>
<li><a name="toc-Stack-Frames-1" href="#Stack-Frames">5.3 Stack Frames</a>
<ul class="no-bullet">
<li><a name="toc-Stack-Motion-1" href="#Stack-Motion">5.3.1 Stack Motion</a></li>
<li><a name="toc-How-Arguments-are-Printed-1" href="#How-Arguments-are-Printed">5.3.2 How Arguments are Printed</a></li>
<li><a name="toc-Function-Names-1" href="#Function-Names">5.3.3 Function Names</a>
<ul class="no-bullet">
<li><a name="toc-Entry-Point-Details-1" href="#Entry-Point-Details">5.3.3.1 Entry Point Details</a></li>
</ul></li>
<li><a name="toc-Debug-Tail-Recursion-1" href="#Debug-Tail-Recursion">5.3.4 Debug Tail Recursion</a></li>
<li><a name="toc-Unknown-Locations-and-Interrupts-1" href="#Unknown-Locations-and-Interrupts">5.3.5 Unknown Locations and Interrupts</a></li>
</ul></li>
<li><a name="toc-Variable-Access-1" href="#Variable-Access">5.4 Variable Access</a>
<ul class="no-bullet">
<li><a name="toc-Variable-Value-Availability-1" href="#Variable-Value-Availability">5.4.1 Variable Value Availability</a></li>
<li><a name="toc-Note-On-Lexical-Variable-Access-1" href="#Note-On-Lexical-Variable-Access">5.4.2 Note On Lexical Variable Access</a></li>
</ul></li>
<li><a name="toc-Source-Location-Printing-1" href="#Source-Location-Printing">5.5 Source Location Printing</a>
<ul class="no-bullet">
<li><a name="toc-How-the-Source-is-Found-1" href="#How-the-Source-is-Found">5.5.1 How the Source is Found</a></li>
<li><a name="toc-Source-Location-Availability-1" href="#Source-Location-Availability">5.5.2 Source Location Availability</a></li>
</ul></li>
<li><a name="toc-Debugger-Policy-Control-1" href="#Debugger-Policy-Control">5.6 Debugger Policy Control</a></li>
<li><a name="toc-Exiting-Commands-1" href="#Exiting-Commands">5.7 Exiting Commands</a></li>
<li><a name="toc-Information-Commands-1" href="#Information-Commands">5.8 Information Commands</a></li>
<li><a name="toc-Function-Tracing-1" href="#Function-Tracing">5.9 Function Tracing</a></li>
<li><a name="toc-Single-Stepping-1" href="#Single-Stepping">5.10 Single Stepping</a></li>
<li><a name="toc-Enabling-and-Disabling-the-Debugger-1" href="#Enabling-and-Disabling-the-Debugger">5.11 Enabling and Disabling the Debugger</a></li>
</ul></li>
<li><a name="toc-Efficiency-1" href="#Efficiency">6 Efficiency</a>
<ul class="no-bullet">
<li><a name="toc-Slot-access-1" href="#Slot-access">6.1 Slot access</a>
<ul class="no-bullet">
<li><a name="toc-Structure-object-slot-access" href="#Structure-object-slot-access">6.1.1 Structure object slot access</a></li>
<li><a name="toc-Standard-object-slot-access" href="#Standard-object-slot-access">6.1.2 Standard object slot access</a></li>
</ul></li>
<li><a name="toc-Dynamic_002dextent-allocation-1" href="#Dynamic_002dextent-allocation">6.2 Dynamic-extent allocation</a></li>
<li><a name="toc-Modular-arithmetic-1" href="#Modular-arithmetic">6.3 Modular arithmetic</a></li>
<li><a name="toc-Global-and-Always_002dBound-variables-1" href="#Global-and-Always_002dBound-variables">6.4 Global and Always-Bound variables</a></li>
<li><a name="toc-Miscellaneous-Efficiency-Issues-1" href="#Miscellaneous-Efficiency-Issues">6.5 Miscellaneous Efficiency Issues</a></li>
</ul></li>
<li><a name="toc-Beyond-the-ANSI-Standard-1" href="#Beyond-the-ANSI-Standard">7 Beyond the ANSI Standard</a>
<ul class="no-bullet">
<li><a name="toc-Reader-Extensions-1" href="#Reader-Extensions">7.1 Reader Extensions</a></li>
<li><a name="toc-Package_002dLocal-Nicknames-1" href="#Package_002dLocal-Nicknames">7.2 Package-Local Nicknames</a></li>
<li><a name="toc-Package-Variance-1" href="#Package-Variance">7.3 Package Variance</a></li>
<li><a name="toc-Garbage-Collection-1" href="#Garbage-Collection">7.4 Garbage Collection</a>
<ul class="no-bullet">
<li><a name="toc-Finalization" href="#Finalization">7.4.1 Finalization</a></li>
<li><a name="toc-Weak-Pointers" href="#Weak-Pointers">7.4.2 Weak Pointers</a></li>
<li><a name="toc-Introspection-and-Tuning" href="#Introspection-and-Tuning">7.4.3 Introspection and Tuning</a></li>
</ul></li>
<li><a name="toc-Metaobject-Protocol-1" href="#Metaobject-Protocol">7.5 Metaobject Protocol</a>
<ul class="no-bullet">
<li><a name="toc-AMOP-Compatibility-of-Metaobject-Protocol" href="#AMOP-Compatibility-of-Metaobject-Protocol">7.5.1 AMOP Compatibility of Metaobject Protocol</a></li>
<li><a name="toc-Metaobject-Protocol-Extensions" href="#Metaobject-Protocol-Extensions">7.5.2 Metaobject Protocol Extensions</a></li>
</ul></li>
<li><a name="toc-Extensible-Sequences-1" href="#Extensible-Sequences">7.6 Extensible Sequences</a>
<ul class="no-bullet">
<li><a name="toc-Iterator-Protocol-1" href="#Iterator-Protocol">7.6.1 Iterator Protocol</a></li>
<li><a name="toc-Simple-Iterator-Protocol-1" href="#Simple-Iterator-Protocol">7.6.2 Simple Iterator Protocol</a></li>
</ul></li>
<li><a name="toc-Support-For-Unix-1" href="#Support-For-Unix">7.7 Support For Unix</a>
<ul class="no-bullet">
<li><a name="toc-Command_002dline-arguments-1" href="#Command_002dline-arguments">7.7.1 Command-line arguments</a></li>
<li><a name="toc-Querying-the-process-environment-1" href="#Querying-the-process-environment">7.7.2 Querying the process environment</a></li>
<li><a name="toc-Running-external-programs-1" href="#Running-external-programs">7.7.3 Running external programs</a></li>
</ul></li>
<li><a name="toc-Unicode-Support-1" href="#Unicode-Support">7.8 Unicode Support</a>
<ul class="no-bullet">
<li><a name="toc-Unicode-property-access" href="#Unicode-property-access">7.8.1 Unicode property access</a></li>
<li><a name="toc-String-operations" href="#String-operations">7.8.2 String operations</a></li>
<li><a name="toc-Breaking-strings" href="#Breaking-strings">7.8.3 Breaking strings</a></li>
</ul></li>
<li><a name="toc-Customization-Hooks-for-Users-1" href="#Customization-Hooks-for-Users">7.9 Customization Hooks for Users</a></li>
<li><a name="toc-Tools-To-Help-Developers-1" href="#Tools-To-Help-Developers">7.10 Tools To Help Developers</a></li>
<li><a name="toc-Resolution-of-Name-Conflicts-1" href="#Resolution-of-Name-Conflicts">7.11 Resolution of Name Conflicts</a></li>
<li><a name="toc-Hash-Table-Extensions-1" href="#Hash-Table-Extensions">7.12 Hash Table Extensions</a></li>
<li><a name="toc-Random-Number-Generation-1" href="#Random-Number-Generation">7.13 Random Number Generation</a></li>
<li><a name="toc-Timeouts-and-Deadlines-1" href="#Timeouts-and-Deadlines">7.14 Timeouts and Deadlines</a>
<ul class="no-bullet">
<li><a name="toc-Timeout-Parameters-1" href="#Timeout-Parameters">7.14.1 Timeout Parameters</a></li>
<li><a name="toc-Synchronous-Timeouts-_0028Deadlines_0029-1" href="#Synchronous-Timeouts-_0028Deadlines_0029">7.14.2 Synchronous Timeouts (Deadlines)</a></li>
<li><a name="toc-Asynchronous-Timeouts-1" href="#Asynchronous-Timeouts">7.14.3 Asynchronous Timeouts</a></li>
<li><a name="toc-Operations-Supporting-Timeouts-and-Deadlines-1" href="#Operations-Supporting-Timeouts-and-Deadlines">7.14.4 Operations Supporting Timeouts and Deadlines</a></li>
</ul></li>
<li><a name="toc-Miscellaneous-Extensions-1" href="#Miscellaneous-Extensions">7.15 Miscellaneous Extensions</a></li>
<li><a name="toc-Stale-Extensions-1" href="#Stale-Extensions">7.16 Stale Extensions</a></li>
<li><a name="toc-Efficiency-Hacks-1" href="#Efficiency-Hacks">7.17 Efficiency Hacks</a></li>
</ul></li>
<li><a name="toc-Foreign-Function-Interface-1" href="#Foreign-Function-Interface">8 Foreign Function Interface</a>
<ul class="no-bullet">
<li><a name="toc-Introduction-to-the-Foreign-Function-Interface-1" href="#Introduction-to-the-Foreign-Function-Interface">8.1 Introduction to the Foreign Function Interface</a></li>
<li><a name="toc-Foreign-Types-1" href="#Foreign-Types">8.2 Foreign Types</a>
<ul class="no-bullet">
<li><a name="toc-Defining-Foreign-Types-1" href="#Defining-Foreign-Types">8.2.1 Defining Foreign Types</a></li>
<li><a name="toc-Foreign-Types-and-Lisp-Types-1" href="#Foreign-Types-and-Lisp-Types">8.2.2 Foreign Types and Lisp Types</a></li>
<li><a name="toc-Foreign-Type-Specifiers-1" href="#Foreign-Type-Specifiers">8.2.3 Foreign Type Specifiers</a></li>
</ul></li>
<li><a name="toc-Operations-On-Foreign-Values-1" href="#Operations-On-Foreign-Values">8.3 Operations On Foreign Values</a>
<ul class="no-bullet">
<li><a name="toc-Accessing-Foreign-Values-1" href="#Accessing-Foreign-Values">8.3.1 Accessing Foreign Values</a>
<ul class="no-bullet">
<li><a name="toc-Untyped-memory" href="#Untyped-memory">8.3.1.1 Untyped memory</a></li>
</ul></li>
<li><a name="toc-Coercing-Foreign-Values-1" href="#Coercing-Foreign-Values">8.3.2 Coercing Foreign Values</a></li>
<li><a name="toc-Foreign-Dynamic-Allocation-1" href="#Foreign-Dynamic-Allocation">8.3.3 Foreign Dynamic Allocation</a></li>
</ul></li>
<li><a name="toc-Foreign-Variables-1" href="#Foreign-Variables">8.4 Foreign Variables</a>
<ul class="no-bullet">
<li><a name="toc-Local-Foreign-Variables-1" href="#Local-Foreign-Variables">8.4.1 Local Foreign Variables</a></li>
<li><a name="toc-External-Foreign-Variables-1" href="#External-Foreign-Variables">8.4.2 External Foreign Variables</a></li>
</ul></li>
<li><a name="toc-Foreign-Data-Structure-Examples-1" href="#Foreign-Data-Structure-Examples">8.5 Foreign Data Structure Examples</a></li>
<li><a name="toc-Loading-Shared-Object-Files-1" href="#Loading-Shared-Object-Files">8.6 Loading Shared Object Files</a></li>
<li><a name="toc-Foreign-Function-Calls-1" href="#Foreign-Function-Calls">8.7 Foreign Function Calls</a>
<ul class="no-bullet">
<li><a name="toc-The-alien_002dfuncall-Primitive-1" href="#The-alien_002dfuncall-Primitive">8.7.1 The <code>alien-funcall</code> Primitive</a></li>
<li><a name="toc-The-define_002dalien_002droutine-Macro-1" href="#The-define_002dalien_002droutine-Macro">8.7.2 The <code>define-alien-routine</code> Macro</a></li>
<li><a name="toc-define_002dalien_002droutine-Example-1" href="#define_002dalien_002droutine-Example">8.7.3 <code>define-alien-routine</code> Example</a></li>
<li><a name="toc-Calling-Lisp-From-C-1" href="#Calling-Lisp-From-C">8.7.4 Calling Lisp From C</a></li>
</ul></li>
<li><a name="toc-Step_002dBy_002dStep-Example-of-the-Foreign-Function-Interface-1" href="#Step_002dBy_002dStep-Example-of-the-Foreign-Function-Interface">8.8 Step-By-Step Example of the Foreign Function Interface</a></li>
</ul></li>
<li><a name="toc-Pathnames-1" href="#Pathnames">9 Pathnames</a>
<ul class="no-bullet">
<li><a name="toc-Lisp-Pathnames-1" href="#Lisp-Pathnames">9.1 Lisp Pathnames</a>
<ul class="no-bullet">
<li><a name="toc-Home-Directory-Specifiers" href="#Home-Directory-Specifiers">9.1.1 Home Directory Specifiers</a></li>
<li><a name="toc-The-SYS-Logical-Pathname-Host" href="#The-SYS-Logical-Pathname-Host">9.1.2 The SYS Logical Pathname Host</a></li>
</ul></li>
<li><a name="toc-Native-Filenames-1" href="#Native-Filenames">9.2 Native Filenames</a></li>
</ul></li>
<li><a name="toc-Streams-1" href="#Streams">10 Streams</a>
<ul class="no-bullet">
<li><a name="toc-External-Formats-1" href="#External-Formats">10.1 External Formats</a></li>
<li><a name="toc-Bivalent-Streams-1" href="#Bivalent-Streams">10.2 Bivalent Streams</a></li>
<li><a name="toc-Gray-Streams-1" href="#Gray-Streams">10.3 Gray Streams</a>
<ul class="no-bullet">
<li><a name="toc-Gray-Streams-classes-1" href="#Gray-Streams-classes">10.3.1 Gray Streams classes</a></li>
<li><a name="toc-Methods-common-to-all-streams-1" href="#Methods-common-to-all-streams">10.3.2 Methods common to all streams</a></li>
<li><a name="toc-Input-stream-methods-1" href="#Input-stream-methods">10.3.3 Input stream methods</a></li>
<li><a name="toc-Character-input-stream-methods-1" href="#Character-input-stream-methods">10.3.4 Character input stream methods</a></li>
<li><a name="toc-Output-stream-methods-1" href="#Output-stream-methods">10.3.5 Output stream methods</a></li>
<li><a name="toc-Character-output-stream-methods-1" href="#Character-output-stream-methods">10.3.6 Character output stream methods</a></li>
<li><a name="toc-Binary-stream-methods-1" href="#Binary-stream-methods">10.3.7 Binary stream methods</a></li>
<li><a name="toc-Gray-Streams-examples-1" href="#Gray-Streams-examples">10.3.8 Gray Streams examples</a>
<ul class="no-bullet">
<li><a name="toc-Character-counting-input-stream-1" href="#Character-counting-input-stream">10.3.8.1 Character counting input stream</a></li>
<li><a name="toc-Output-prefixing-character-stream-1" href="#Output-prefixing-character-stream">10.3.8.2 Output prefixing character stream</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Simple-Streams-1" href="#Simple-Streams">10.4 Simple Streams</a></li>
</ul></li>
<li><a name="toc-Package-Locks-1" href="#Package-Locks">11 Package Locks</a>
<ul class="no-bullet">
<li><a name="toc-Package-Lock-Concepts-1" href="#Package-Lock-Concepts">11.1 Package Lock Concepts</a>
<ul class="no-bullet">
<li><a name="toc-Package-Locking-Overview" href="#Package-Lock-Overview">11.1.1 Package Locking Overview</a></li>
<li><a name="toc-Implementation-Packages-1" href="#Implementation-Packages">11.1.2 Implementation Packages</a></li>
<li><a name="toc-Package-Lock-Violations-1" href="#Package-Lock-Violations">11.1.3 Package Lock Violations</a>
<ul class="no-bullet">
<li><a name="toc-Lexical-Bindings-and-Declarations" href="#Lexical-Bindings-and-Declarations">11.1.3.1 Lexical Bindings and Declarations</a></li>
<li><a name="toc-Other-Operations" href="#Other-Operations">11.1.3.2 Other Operations</a></li>
</ul></li>
<li><a name="toc-Package-Locks-in-Compiled-Code-1" href="#Package-Locks-in-Compiled-Code">11.1.4 Package Locks in Compiled Code</a>
<ul class="no-bullet">
<li><a name="toc-Interned-Symbols" href="#Interned-Symbols">11.1.4.1 Interned Symbols</a></li>
<li><a name="toc-Other-Limitations-on-Compiled-Code" href="#Other-Limitations-on-Compiled-Code">11.1.4.2 Other Limitations on Compiled Code</a></li>
</ul></li>
<li><a name="toc-Operations-Violating-Package-Locks-1" href="#Operations-Violating-Package-Locks">11.1.5 Operations Violating Package Locks</a>
<ul class="no-bullet">
<li><a name="toc-Operations-on-Packages" href="#Operations-on-Packages">11.1.5.1 Operations on Packages</a></li>
<li><a name="toc-Operations-on-Symbols" href="#Operations-on-Symbols">11.1.5.2 Operations on Symbols</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Package-Lock-Dictionary-1" href="#Package-Lock-Dictionary">11.2 Package Lock Dictionary</a></li>
</ul></li>
<li><a name="toc-Threading-1" href="#Threading">12 Threading</a>
<ul class="no-bullet">
<li><a name="toc-Threading-basics-1" href="#Threading-basics">12.1 Threading basics</a>
<ul class="no-bullet">
<li><a name="toc-Thread-Objects" href="#Thread-Objects">12.1.1 Thread Objects</a></li>
<li><a name="toc-Making_002c-Returning-From_002c-Joining_002c-and-Yielding-Threads" href="#Making_002c-Returning-From_002c-Joining_002c-and-Yielding-Threads">12.1.2 Making, Returning From, Joining, and Yielding Threads</a></li>
<li><a name="toc-Asynchronous-Operations" href="#Asynchronous-Operations">12.1.3 Asynchronous Operations</a></li>
<li><a name="toc-Miscellaneous-Operations" href="#Miscellaneous-Operations">12.1.4 Miscellaneous Operations</a></li>
<li><a name="toc-Error-Conditions" href="#Error-Conditions">12.1.5 Error Conditions</a></li>
</ul></li>
<li><a name="toc-Special-Variables-1" href="#Special-Variables">12.2 Special Variables</a></li>
<li><a name="toc-Atomic-Operations-1" href="#Atomic-Operations">12.3 Atomic Operations</a>
<ul class="no-bullet">
<li><a name="toc-CAS-Protocol" href="#CAS-Protocol">CAS Protocol</a></li>
</ul></li>
<li><a name="toc-Mutex-Support-1" href="#Mutex-Support">12.4 Mutex Support</a></li>
<li><a name="toc-Semaphores-1" href="#Semaphores">12.5 Semaphores</a></li>
<li><a name="toc-Waitqueue_002fcondition-variables-1" href="#Waitqueue_002fcondition-variables">12.6 Waitqueue/condition variables</a></li>
<li><a name="toc-Barriers-1" href="#Barriers">12.7 Barriers</a></li>
<li><a name="toc-Sessions_002fDebugging-1" href="#Sessions_002fDebugging">12.8 Sessions/Debugging</a></li>
<li><a name="toc-Foreign-threads-1" href="#Foreign-threads">12.9 Foreign threads</a></li>
<li><a name="toc-Implementation-_0028Linux-x86_002fx86_002d64_0029-1" href="#Implementation-_0028Linux-x86_002fx86_002d64_0029">12.10 Implementation (Linux x86/x86-64)</a></li>
</ul></li>
<li><a name="toc-Timers-1" href="#Timers">13 Timers</a>
<ul class="no-bullet">
<li><a name="toc-Timer-Dictionary" href="#Timer-Dictionary">13.1 Timer Dictionary</a></li>
</ul></li>
<li><a name="toc-Networking-1" href="#Networking">14 Networking</a>
<ul class="no-bullet">
<li><a name="toc-Sockets-Overview-1" href="#Sockets-Overview">14.1 Sockets Overview</a></li>
<li><a name="toc-General-Sockets-1" href="#General-Sockets">14.2 General Sockets</a></li>
<li><a name="toc-Socket-Options-1" href="#Socket-Options">14.3 Socket Options</a></li>
<li><a name="toc-INET-Domain-Sockets-1" href="#INET-Domain-Sockets">14.4 INET Domain Sockets</a></li>
<li><a name="toc-Local-_0028Unix_0029-Domain-Sockets-1" href="#Local-_0028Unix_0029-Domain-Sockets">14.5 Local (Unix) Domain Sockets</a></li>
<li><a name="toc-Name-Service-1" href="#Name-Service">14.6 Name Service</a></li>
</ul></li>
<li><a name="toc-Profiling-1" href="#Profiling">15 Profiling</a>
<ul class="no-bullet">
<li><a name="toc-Deterministic-Profiler-1" href="#Deterministic-Profiler">15.1 Deterministic Profiler</a></li>
<li><a name="toc-Statistical-Profiler-1" href="#Statistical-Profiler">15.2 Statistical Profiler</a>
<ul class="no-bullet">
<li><a name="toc-Example-Usage" href="#Example-Usage">15.2.1 Example Usage</a></li>
<li><a name="toc-Output" href="#Output">15.2.2 Output</a></li>
<li><a name="toc-Platform-support" href="#Platform-support">15.2.3 Platform support</a></li>
<li><a name="toc-Macros" href="#Macros">15.2.4 Macros</a></li>
<li><a name="toc-Functions" href="#Functions">15.2.5 Functions</a></li>
<li><a name="toc-Variables" href="#Variables">15.2.6 Variables</a></li>
<li><a name="toc-Credits" href="#Credits">15.2.7 Credits</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Contributed-Modules-1" href="#Contributed-Modules">16 Contributed Modules</a>
<ul class="no-bullet">
<li><a name="toc-sb_002daclrepl-1" href="#sb_002daclrepl">16.1 sb-aclrepl</a>
<ul class="no-bullet">
<li><a name="toc-Usage" href="#Usage">16.1.1 Usage</a></li>
<li><a name="toc-Customization" href="#Customization">16.1.2 Customization</a></li>
<li><a name="toc-Example-Initialization" href="#Example-Initialization">16.1.3 Example Initialization</a></li>
<li><a name="toc-Credits-1" href="#Credits-1">16.1.4 Credits</a></li>
</ul></li>
<li><a name="toc-sb_002dconcurrency-1" href="#sb_002dconcurrency">16.2 sb-concurrency</a>
<ul class="no-bullet">
<li><a name="toc-Queue" href="#Queue">16.2.1 Queue</a></li>
<li><a name="toc-Mailbox-_0028lock_002dfree_0029" href="#Mailbox-_0028lock_002dfree_0029">16.2.2 Mailbox (lock-free)</a></li>
<li><a name="toc-Gates" href="#Gates">16.2.3 Gates</a></li>
<li><a name="toc-Frlocks_002c-aka-Fast-Read-Locks" href="#Frlocks_002c-aka-Fast-Read-Locks">16.2.4 Frlocks, aka Fast Read Locks</a></li>
</ul></li>
<li><a name="toc-sb_002dcover-1" href="#sb_002dcover">16.3 sb-cover</a>
<ul class="no-bullet">
<li><a name="toc-Example-Usage-1" href="#Example-Usage-1">16.3.1 Example Usage</a></li>
<li><a name="toc-Functions-1" href="#Functions-1">16.3.2 Functions</a></li>
</ul></li>
<li><a name="toc-sb_002dgrovel-1" href="#sb_002dgrovel">16.4 sb-grovel</a>
<ul class="no-bullet">
<li><a name="toc-Using-sb_002dgrovel-in-your-own-ASDF-system" href="#Using-sb_002dgrovel-in-your-own-ASDF-system">16.4.1 Using sb-grovel in your own ASDF system</a></li>
<li><a name="toc-Contents-of-a-grovel_002dconstants_002dfile" href="#Contents-of-a-grovel_002dconstants_002dfile">16.4.2 Contents of a grovel-constants-file</a></li>
<li><a name="toc-Programming-with-sb_002dgrovel_0027s-structure-types" href="#Programming-with-sb_002dgrovel_0027s-structure-types">16.4.3 Programming with sb-grovel’s structure types</a>
<ul class="no-bullet">
<li><a name="toc-Traps-and-Pitfalls" href="#Traps-and-Pitfalls">16.4.3.1 Traps and Pitfalls</a></li>
</ul></li>
</ul></li>
<li><a name="toc-sb_002dmd5-1" href="#sb_002dmd5">16.5 sb-md5</a>
<ul class="no-bullet">
<li><a name="toc-Credits-2" href="#Credits-2">16.5.1 Credits</a></li>
</ul></li>
<li><a name="toc-sb_002dposix-1" href="#sb_002dposix">16.6 sb-posix</a>
<ul class="no-bullet">
<li><a name="toc-Lisp-names-for-C-names-1" href="#Lisp-names-for-C-names">16.6.1 Lisp names for C names</a></li>
<li><a name="toc-Types-1" href="#Types">16.6.2 Types</a>
<ul class="no-bullet">
<li><a name="toc-File_002ddescriptors-1" href="#File_002ddescriptors">16.6.2.1 File-descriptors</a></li>
<li><a name="toc-Filenames-1" href="#Filenames">16.6.2.2 Filenames</a></li>
</ul></li>
<li><a name="toc-Function-Parameters-1" href="#Function-Parameters">16.6.3 Function Parameters</a></li>
<li><a name="toc-Function-Return-Values-1" href="#Function-Return-Values">16.6.4 Function Return Values</a></li>
<li><a name="toc-Lisp-objects-and-C-structures-1" href="#Lisp-objects-and-C-structures">16.6.5 Lisp objects and C structures</a></li>
<li><a name="toc-Functions-with-idiosyncratic-bindings-1" href="#Functions-with-idiosyncratic-bindings">16.6.6 Functions with idiosyncratic bindings</a></li>
</ul></li>
<li><a name="toc-sb_002dqueue-1" href="#sb_002dqueue">16.7 sb-queue</a></li>
<li><a name="toc-sb_002drotate_002dbyte-1" href="#sb_002drotate_002dbyte">16.8 sb-rotate-byte</a></li>
</ul></li>
<li><a name="toc-Deprecation-1" href="#Deprecation">17 Deprecation</a>
<ul class="no-bullet">
<li><a name="toc-Why-Deprecate_003f-1" href="#Why-Deprecate_003f">17.1 Why Deprecate?</a></li>
<li><a name="toc-The-Deprecation-Pipeline-1" href="#The-Deprecation-Pipeline">17.2 The Deprecation Pipeline</a></li>
<li><a name="toc-Deprecation-Conditions-1" href="#Deprecation-Conditions">17.3 Deprecation Conditions</a></li>
<li><a name="toc-Introspecting-Deprecation-Information-1" href="#Introspecting-Deprecation-Information">17.4 Introspecting Deprecation Information</a></li>
<li><a name="toc-Deprecation-Declaration-1" href="#Deprecation-Declaration">17.5 Deprecation Declaration</a></li>
<li><a name="toc-Deprecation-Examples-1" href="#Deprecation-Examples">17.6 Deprecation Examples</a></li>
<li><a name="toc-Deprecated-Interfaces-in-SBCL-1" href="#Deprecated-Interfaces-in-SBCL">17.7 Deprecated Interfaces in SBCL</a>
<ul class="no-bullet">
<li><a name="toc-List-of-Deprecated-Interfaces" href="#List-of-Deprecated-Interfaces">17.7.1 List of Deprecated Interfaces</a>
<ul class="no-bullet">
<li><a name="toc-Early-Deprecation" href="#Early-Deprecation">17.7.1.1 Early Deprecation</a></li>
<li><a name="toc-Late-Deprecation" href="#Late-Deprecation">17.7.1.2 Late Deprecation</a></li>
<li><a name="toc-Final-Deprecation" href="#Final-Deprecation">17.7.1.3 Final Deprecation</a></li>
</ul></li>
<li><a name="toc-Historical-Interfaces" href="#Historical-Interfaces">17.7.2 Historical Interfaces</a></li>
</ul></li>
</ul></li>
<li><a name="toc-Concept-Index-1" href="#Concept-Index">Appendix A Concept Index</a></li>
<li><a name="toc-Function-Index-1" href="#Function-Index">Appendix B Function Index</a></li>
<li><a name="toc-Variable-Index-1" href="#Variable-Index">Appendix C Variable Index</a></li>
<li><a name="toc-Type-Index-1" href="#Type-Index">Appendix D Type Index</a></li>
<li><a name="toc-Colophon-1" href="#Colophon">Colophon</a></li>
</ul>
</div>
<a name="Top"></a>
<div class="header">
<p>
Next: <a href="#Getting-Support-and-Reporting-Bugs" accesskey="n" rel="next">Getting Support and Reporting Bugs</a>, Up: <a href="dir.html#Top" accesskey="u" rel="up">(dir)</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="sbcl"></a>
<h1 class="top">sbcl</h1>
<blockquote>
<p>This manual is part of the SBCL software system. See the
<samp>README</samp> file for more information.
</p>
<p>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 <samp>COPYING</samp> and
<samp>CREDITS</samp> files for more information.
</p></blockquote>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#Getting-Support-and-Reporting-Bugs" accesskey="1">Getting Support and Reporting Bugs</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Introduction" accesskey="2">Introduction</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Starting-and-Stopping" accesskey="3">Starting and Stopping</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Compiler" accesskey="4">Compiler</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Debugger" accesskey="5">Debugger</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Efficiency" accesskey="6">Efficiency</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Beyond-the-ANSI-Standard" accesskey="7">Beyond the ANSI Standard</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Foreign-Function-Interface" accesskey="8">Foreign Function Interface</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Pathnames" accesskey="9">Pathnames</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Streams">Streams</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Package-Locks">Package Locks</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Threading">Threading</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Timers">Timers</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Networking">Networking</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Profiling">Profiling</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Contributed-Modules">Contributed Modules</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Deprecation">Deprecation</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Concept-Index">Concept Index</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Function-Index">Function Index</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Variable-Index">Variable Index</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Type-Index">Type Index</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Colophon">Colophon</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr>
<a name="Getting-Support-and-Reporting-Bugs"></a>
<div class="header">
<p>
Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Getting-Support-and-Reporting-Bugs-1"></a>
<h2 class="chapter">1 Getting Support and Reporting Bugs</h2>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#Volunteer-Support" accesskey="1">Volunteer Support</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Commercial-Support" accesskey="2">Commercial Support</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Reporting-Bugs" accesskey="3">Reporting Bugs</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr>
<a name="Volunteer-Support"></a>
<div class="header">
<p>
Next: <a href="#Commercial-Support" accesskey="n" rel="next">Commercial Support</a>, Up: <a href="#Getting-Support-and-Reporting-Bugs" accesskey="u" rel="up">Getting Support and Reporting Bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Volunteer-Support-1"></a>
<h3 class="section">1.1 Volunteer Support</h3>
<p>Your primary source of SBCL support should probably be the mailing
list <strong>sbcl-help</strong>: in addition to other users SBCL developers
monitor this list and are available for advice. As an anti-spam
measure subscription is required for posting:
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="https://lists.sourceforge.net/lists/listinfo/sbcl-help">https://lists.sourceforge.net/lists/listinfo/sbcl-help</a>
</p>
<p>Remember that the people answering your question are volunteers, so
you stand a much better chance of getting a good answer if you ask a
good question.
</p>
<p>Before sending mail, check the list archives at either
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="http://sourceforge.net/mailarchive/forum.php?forum_name=sbcl-help">http://sourceforge.net/mailarchive/forum.php?forum_name=sbcl-help</a>
</p>
<p>or
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="http://news.gmane.org/gmane.lisp.steel-bank.general">http://news.gmane.org/gmane.lisp.steel-bank.general</a>
</p>
<p>to see if your question has been answered already. Checking the bug
database is also worth it See <a href="#Reporting-Bugs">Reporting Bugs</a>, to see if the issue
is already known.
</p>
<p>For general advice on asking good questions, see
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="http://www.catb.org/~esr/faqs/smart-questions.html">http://www.catb.org/~esr/faqs/smart-questions.html</a>.
</p>
<hr>
<a name="Commercial-Support"></a>
<div class="header">
<p>
Next: <a href="#Reporting-Bugs" accesskey="n" rel="next">Reporting Bugs</a>, Previous: <a href="#Volunteer-Support" accesskey="p" rel="prev">Volunteer Support</a>, Up: <a href="#Getting-Support-and-Reporting-Bugs" accesskey="u" rel="up">Getting Support and Reporting Bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Commercial-Support-1"></a>
<h3 class="section">1.2 Commercial Support</h3>
<p>There is no formal organization developing SBCL, but if you need a
paid support arrangement or custom SBCL development, we maintain the
list of companies and consultants below. Use it to identify service
providers with appropriate skills and interests, and contact them
directly.
</p>
<p>The SBCL project cannot verify the accuracy of the information or the
competence of the people listed, and they have provided their own
blurbs below: you must make your own judgement of suitability from the
available information - refer to the links they provide, the CREDITS
file, mailing list archives, CVS commit messages, and so on. Please
feel free to ask for advice on the sbcl-help list.
</p>
<p>(At present, no companies or consultants wish to advertise paid support
or custom SBCL development in this manual).
</p>
<hr>
<a name="Reporting-Bugs"></a>
<div class="header">
<p>
Previous: <a href="#Commercial-Support" accesskey="p" rel="prev">Commercial Support</a>, Up: <a href="#Getting-Support-and-Reporting-Bugs" accesskey="u" rel="up">Getting Support and Reporting Bugs</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Reporting-Bugs-1"></a>
<h3 class="section">1.3 Reporting Bugs</h3>
<p>SBCL uses Launchpad to track bugs. The bug database is available at
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="https://bugs.launchpad.net/sbcl">https://bugs.launchpad.net/sbcl</a>
</p>
<p>Reporting bugs there requires registering at Launchpad. However, bugs
can also be reported on the mailing list <strong>sbcl-bugs</strong>, which is
moderated but does <em>not</em> require subscribing.
</p>
<p>Simply send email to <a href="mailto:[email protected]">[email protected]</a> and the
bug will be checked and added to Launchpad by SBCL maintainers.
</p>
<a name="How-to-Report-Bugs-Effectively"></a>
<h4 class="subsection">1.3.1 How to Report Bugs Effectively</h4>
<p>Please include enough information in a bug report that someone reading
it can reproduce the problem, i.e. don’t write
</p>
<div class="example">
<pre class="example">Subject: apparent bug in PRINT-OBJECT (or *PRINT-LENGTH*?)
PRINT-OBJECT doesn't seem to work with *PRINT-LENGTH*. Is this a bug?
</pre></div>
<p>but instead
</p>
<div class="example">
<pre class="example">Subject: apparent bug in PRINT-OBJECT (or *PRINT-LENGTH*?)
In sbcl-1.2.3 running under OpenBSD 4.5 on my Alpha box, when
I compile and load the file
(DEFSTRUCT (FOO (:PRINT-OBJECT (LAMBDA (X Y)
(LET ((*PRINT-LENGTH* 4))
(PRINT X Y)))))
X Y)
then at the command line type
(MAKE-FOO)
the program loops endlessly instead of printing the object.
</pre></div>
<p>A more in-depth discussion on reporting bugs effectively can be found
at
</p>
<p> <!-- /@w --> <!-- /@w --> <a href="http://www.chiark.greenend.org.uk/~sgtatham/bugs.html">http://www.chiark.greenend.org.uk/~sgtatham/bugs.html</a>.
</p>
<a name="Signal-Related-Bugs"></a>
<h4 class="subsection">1.3.2 Signal Related Bugs</h4>
<p>If you run into a signal related bug, you are getting fatal errors
such as <code>signal N is [un]blocked</code> or just hangs, and you want to
send a useful bug report then:
</p>
<ol>
<li> <a name="index-ldb"></a>
Compile SBCL with ldb enabled (feature <code>:sb-ldb</code>, see
<samp>base-target-features.lisp-expr</samp>) and change <code>#define
QSHOW_SIGNAL 0</code> to <code>#define QSHOW_SIGNAL 1</code> in
<samp>src/runtime/runtime.h</samp>.
</li><li> Isolate a smallish test case, run it.
</li><li> If it just hangs kill it with sigabrt: <code>kill -ABRT <pidof sbcl></code>.
</li><li> Print the backtrace from ldb by typing <code>ba</code>.
</li><li> Attach gdb: <code>gdb -p <pidof sbcl></code> and get backtraces for all threads:
<code>thread apply all ba</code>.
</li><li> If multiple threads are in play then still in gdb, try to get Lisp
backtrace for all threads: <code>thread apply all call
backtrace_from_fp($ebp, 100)</code>. Substitute <code>$ebp</code> with <code>$rbp</code>
on x86-64. The backtraces will appear in the stdout of the SBCL
process.
</li><li> Send a report with the backtraces and the output (both stdout and
stderr) produced by SBCL.
</li><li> Don’t forget to include OS and SBCL version.
</li><li> If available, include information on outcome of the same test with
other versions of SBCL, OS, ...
</li></ol>
<hr>
<a name="Introduction"></a>
<div class="header">
<p>
Next: <a href="#Starting-and-Stopping" accesskey="n" rel="next">Starting and Stopping</a>, Previous: <a href="#Getting-Support-and-Reporting-Bugs" accesskey="p" rel="prev">Getting Support and Reporting Bugs</a>, Up: <a href="#Top" accesskey="u" rel="up">Top</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Introduction-1"></a>
<h2 class="chapter">2 Introduction</h2>
<p>SBCL is a mostly-conforming implementation of the ANSI Common Lisp
standard. This manual focuses on behavior which is specific to SBCL,
not on behavior which is common to all implementations of ANSI Common
Lisp.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="#ANSI-Conformance" accesskey="1">ANSI Conformance</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Extensions" accesskey="2">Extensions</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Idiosyncrasies" accesskey="3">Idiosyncrasies</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#Development-Tools" accesskey="4">Development Tools</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#More-SBCL-Information" accesskey="5">More SBCL Information</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#More-Common-Lisp-Information" accesskey="6">More Common Lisp Information</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
<tr><td align="left" valign="top">• <a href="#History-and-Implementation-of-SBCL" accesskey="7">History and Implementation of SBCL</a>:</td><td> </td><td align="left" valign="top">
</td></tr>
</table>
<hr>
<a name="ANSI-Conformance"></a>
<div class="header">
<p>
Next: <a href="#Extensions" accesskey="n" rel="next">Extensions</a>, Up: <a href="#Introduction" accesskey="u" rel="up">Introduction</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="ANSI-Conformance-1"></a>
<h3 class="section">2.1 ANSI Conformance</h3>
<p>Essentially every type of non-conformance is considered a bug. (The
exceptions involve internal inconsistencies in the standard.)
See <a href="#Reporting-Bugs">Reporting Bugs</a>.
</p>
<hr>
<a name="Extensions"></a>
<div class="header">
<p>
Next: <a href="#Idiosyncrasies" accesskey="n" rel="next">Idiosyncrasies</a>, Previous: <a href="#ANSI-Conformance" accesskey="p" rel="prev">ANSI Conformance</a>, Up: <a href="#Introduction" accesskey="u" rel="up">Introduction</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Extensions-1"></a>
<h3 class="section">2.2 Extensions</h3>
<p>SBCL comes with numerous extensions, some in core and some in modules
loadable with <code>require</code>. Unfortunately, not all of these
extensions have proper documentation yet.
</p>
<dl compact="compact">
<dt><strong>System Definition Tool</strong></dt>
<dd><p><code>asdf</code> is a flexible and popular protocol-oriented system
definition tool by Daniel Barlow. See <a href="asdf.html#Top">(asdf)the asdf manual</a>, for
more information.
</p>
</dd>