0.7.1.37:
[sbcl.git] / build-order.lisp-expr
1 ;;;; -*- Lisp -*-
2
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
11
12 ;;; a linear ordering of system sources which works both to compile/load
13 ;;; the cross-compiler under the host Common Lisp and then to cross-compile
14 ;;; the complete system into the under-construction target SBCL
15 ;;;
16 ;;; Of course, it'd be very nice to have this be a dependency DAG
17 ;;; instead, so that we could do automated incremental recompilation.
18 ;;; But the dependencies are varied and subtle, and it'd be extremely
19 ;;; difficult to extract them automatically, and it'd be extremely
20 ;;; tedious and error-prone to extract them manually, so we don't 
21 ;;; extract them. (It would be nice to fix this someday. The most
22 ;;; feasible approach that I can think of would be to make the
23 ;;; dependencies work on a package level, not an individual file
24 ;;; level. Doing it at the package level would make the granularity
25 ;;; coarse enough that it would probably be pretty easy to maintain
26 ;;; the dependency information manually, and the brittleness of the
27 ;;; package system would help make most violations of the declared
28 ;;; dependencies obvious at build time. -- WHN 20000803
29 (
30  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
31  ;;; miscellaneous
32
33  ;; This comes early because it's useful for debugging everywhere.
34  ("src/code/show")
35
36  ;; This comes early because the cross-compilation host's backquote
37  ;; logic can expand into something which can't be executed on the
38  ;; target Lisp (e.g. in CMU CL where it expands into internal
39  ;; functions like BACKQ-LIST), and by replacing the host backquote
40  ;; logic with our own as early as possible, we minimize the chance of
41  ;; any forms referring to cross-compilation host internal functions
42  ;; leaking into target SBCL code.
43  ("src/code/backq")
44
45  ;; It's difficult to be too early with a DECLAIM SPECIAL (or DEFVAR
46  ;; or whatever) thanks to the sullenly-do-the-wrong-thing semantics
47  ;; of CL special binding when the variable is undeclared.
48  ("src/code/globals" :not-host)
49
50  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
51  ;; various DEFSETFs and/or other DEFMACROish things, defined as early as
52  ;; possible so we don't need to fiddle with any subtleties of defining them
53  ;; before any possible use
54
55  ;; KLUDGE: It would be nice to reimplement most or all of these as
56  ;; functions (possibly inlined functions) so that we wouldn't need to
57  ;; worry so much about forcing them all to be defined before any possible
58  ;; use. It might be pretty tedious, though, working through any
59  ;; transforms and translators and optimizers and so forth to make sure
60  ;; that they can handle the change. -- WHN 19990919
61  ("src/code/defsetfs")
62
63  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
64  ;;; cross-compiler-only replacements for stuff which in target Lisp would be
65  ;;; supplied by basic machinery
66
67  ("src/code/cross-misc"  :not-target)
68  ("src/code/cross-float" :not-target)
69  ("src/code/cross-io"    :not-target)
70  ("src/code/cross-sap"   :not-target)
71
72  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
73  ;;; stuff needed early both in cross-compilation host and in target Lisp
74
75  ("src/code/uncross")
76  ("src/code/early-defbangmethod")
77
78  ("src/code/defbangtype")
79  ("src/code/defbangmacro")
80
81  ("src/code/primordial-extensions")
82
83  ;; for various constants e.g. SB!XC:MOST-POSITIVE-FIXNUM and
84  ;; SB!VM:N-LOWTAG-BITS, needed by "early-objdef" and others
85  ("src/compiler/generic/early-vm")
86  ("src/compiler/generic/early-objdef")
87  ("src/compiler/target/parms")
88  ("src/code/early-array") ; needs "early-vm" numbers
89
90  ("src/code/parse-body")       ; on host for PARSE-BODY
91  ("src/code/parse-defmacro")   ; on host for PARSE-DEFMACRO
92  ("src/code/early-extensions") ; on host for COLLECT, SYMBOLICATE, etc.
93  ("src/compiler/deftype")      ; on host for SB!XC:DEFTYPE
94  ("src/code/early-alieneval")  ; for vars needed both at build and run time
95
96  ("src/code/specializable-array")
97
98  ("src/code/early-cl")
99  ("src/code/early-fasl")
100
101  ;; mostly needed by stuff from comcom, but also used by "x86-vm"
102  ("src/code/debug-var-io")
103
104  ("src/code/cold-init-helper-macros")
105
106  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
107  ;;; basic machinery for the target Lisp. Note that although most of these
108  ;;; files are flagged :NOT-HOST, a few might not be.
109
110  ("src/code/target-defbangmethod" :not-host)
111
112  ("src/code/early-print" :not-host)
113  ("src/code/early-pprint" :not-host)
114  ("src/code/early-impl" :not-host)
115
116  ("src/code/target-extensions" :not-host)
117
118  ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
119
120  ("src/code/defbangstruct")
121
122  ("src/code/funutils" :not-host)
123
124  ;; This needs DEF!STRUCT, and is itself needed early so that structure
125  ;; accessors and inline functions defined here can be compiled inline
126  ;; later. (Avoiding full calls not only increases efficiency, but also
127  ;; avoids some cold init issues involving full calls to structure
128  ;; accessors.)
129  ("src/code/type-class")
130
131  ("src/code/pcounter" :not-host)
132
133  ("src/code/ansi-stream" :not-host)
134
135  ("src/code/sysmacs" :not-host)
136
137  ;; "assembly/assemfile" was here in the sequence inherited from
138  ;; CMU CL worldcom.lisp, but also appears later in the sequence
139  ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
140  ;; so I've deleted the one here. -- WHN 19990620
141
142  ("src/code/target-error" :not-host)
143
144  ;; a comment from classic CMU CL:
145  ;;   "These guys can supposedly come in any order, but not really.
146  ;;    Some are put at the end so that macros don't run interpreted
147  ;;    and stuff."
148  ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
149  ;; FIXME: more informative and up-to-date comment?
150  ("src/code/kernel"      :not-host)
151  ("src/code/toplevel"    :not-host)
152  ("src/code/cold-error"  :not-host)
153  ("src/code/fdefinition" :not-host)
154  ;; FIXME: Figure out some way to make the compiler macro for INFO 
155  ;; available for compilation of "code/fdefinition".
156
157  ;; In classic CMU CL, code/type was here. I've since split that into
158  ;; lots of smaller pieces, some of which are here and some of which
159  ;; are handled later in the sequence, when the cross-compiler is
160  ;; built. -- WHN 19990620
161  ("src/code/target-type" :not-host)
162
163  ("src/code/pred" :not-host)
164
165  ("src/code/target-alieneval" :not-host)
166  ("src/code/target-c-call"    :not-host)
167  ("src/code/target-allocate"  :not-host)
168
169  ;; This needs DEFINE-ALIEN-ROUTINE from target-alieneval.
170  ("src/code/misc-aliens" :not-host)
171
172  ("src/code/array"         :not-host)
173  ("src/code/target-sxhash" :not-host)
174
175  ("src/code/list"   :not-host)
176  ("src/code/seq"    :not-host) ; "code/seq" should come after "code/list".
177  ("src/code/coerce" :not-host)
178
179  ("src/code/string"     :not-host)
180  ("src/code/mipsstrops" :not-host)
181
182  ;; "src/code/unix.lisp" needs this. It's generated automatically by
183  ;; grovel_headers.c, i.e. it's not in CVS.
184  ("output/stuff-groveled-from-headers" :not-host)
185
186  ("src/code/unix" :not-host)
187
188  #!+mach  ("src/code/mach"     :not-host)
189  #!+mach  ("src/code/mach-os"  :not-host)
190  #!+sunos ("src/code/sunos-os" :not-host)
191  #!+hpux  ("src/code/hpux-os"  :not-host)
192  #!+osf1  ("src/code/osf1-os"  :not-host)
193  #!+irix  ("src/code/irix-os"  :not-host)
194  #!+bsd   ("src/code/bsd-os"   :not-host)
195  #!+linux ("src/code/linux-os" :not-host)
196
197  ;; sparc-vm and ppc-vm need sc-offset defined to get at internal
198  ;; error args. This file contains stuff previously in
199  ;; debug-info.lisp.  Should it therefore be :not-host?  -- CSR,
200  ;; 2002-02-05
201  ("src/code/sc-offset")
202  
203  ;; KLUDGE: I'd prefer to have this done with a "code/target" softlink
204  ;; instead of a bunch of reader macros. -- WHN 19990308
205  #!+pmax ("src/code/pmax-vm" :not-host)
206  #!+(and sparc svr4) ("src/code/sparc-svr4-vm" :not-host)
207  #!+(and sparc (not svr4)) ("src/code/sparc-vm" :not-host)
208  #!+rt    ("src/code/rt-vm"    :not-host)
209  #!+hppa  ("src/code/hppa-vm"  :not-host)
210  #!+x86   ("src/code/x86-vm"   :not-host)
211  #!+ppc   ("src/code/ppc-vm"   :not-host)
212  #!+alpha ("src/code/alpha-vm" :not-host)
213  #!+sgi   ("src/code/sgi-vm"   :not-host)
214
215  ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
216
217  ("src/code/symbol"     :not-host)
218  ("src/code/bignum"     :not-host)
219  ("src/code/numbers"    :not-host)
220  ("src/code/float-trap" :not-host)
221  ("src/code/float"      :not-host)
222  ("src/code/irrat"      :not-host)
223
224  ("src/code/char")
225  ("src/code/target-char" :not-host)
226  ("src/code/target-misc" :not-host)
227  ("src/code/misc")
228
229  ("src/code/room"   :not-host)
230  ("src/code/gc"     :not-host)
231  ("src/code/purify" :not-host)
232
233  ("src/code/stream"        :not-host)
234  ("src/code/print"         :not-host)
235  ("src/code/pprint"        :not-host)
236  ("src/code/early-format")
237  ("src/code/target-format" :not-host)
238  ("src/code/defpackage"    :not-host)
239  ("src/code/pp-backq"      :not-host)
240
241  ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
242
243  ("src/code/serve-event" :not-host)
244  ("src/code/fd-stream"   :not-host)
245
246  ("src/code/module" :not-host)
247
248  ("src/code/interr" :not-host)
249
250  ("src/code/query"  :not-host)
251
252  ("src/code/sort"  :not-host)
253  ("src/code/time"  :not-host)
254  ("src/code/weak"  :not-host)
255  ("src/code/final" :not-host)
256
257  #!+mp ("src/code/multi-proc" :not-host)
258
259  ("src/code/setf-funs" :not-host)
260
261  ("src/code/stubs" :not-host)
262
263  ("src/code/exhaust" :not-host)
264
265  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
266  ;;; compiler (and a few miscellaneous files whose dependencies make it
267  ;;; convenient to stick them here)
268
269  ("src/compiler/early-c")
270  ("src/compiler/policy")
271  ("src/code/typedefs")
272
273  ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
274
275  ("src/compiler/macros")
276  ("src/compiler/generic/vm-macs")
277
278  ;; needed by "compiler/vop"
279  ("src/compiler/sset")
280
281  ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
282  ("src/compiler/node")
283
284  ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
285  ("src/compiler/vop")
286
287  ;; needed by "vm" and "primtype"
288  ("src/compiler/backend")
289
290  ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
291  ("src/compiler/vmdef")
292
293  ;; needs "backend"
294  ("src/compiler/target/backend-parms")
295
296  ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
297  ("src/compiler/globaldb")
298  ("src/compiler/info-functions")
299
300  ("src/code/defmacro")
301  ("src/code/force-delayed-defbangmacros")
302
303  ("src/compiler/late-macros")
304
305  ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
306  ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
307  ("src/compiler/meta-vmdef")
308
309  ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
310  ("src/compiler/target/vm")
311
312  ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
313  ("src/code/early-type")
314
315  ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
316  ;; around the compilation of "code/class". Why?
317  ("src/code/class")
318
319  ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
320  ;; in class.lisp.
321  ("src/code/condition" :not-host)
322
323  ("src/compiler/generic/primtype")
324
325  ;; the implementation of the compiler-affecting part of forms like
326  ;; DEFMACRO and DEFTYPE; must be loaded before we can start
327  ;; defining types
328  ("src/compiler/parse-lambda-list")
329
330  ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
331  ("src/code/host-alieneval")
332
333  ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
334  ;; host-alieneval.lisp
335  ("src/code/host-c-call")
336
337  ;; SB!XC:DEFTYPE is needed in order to compile late-type
338  ;; in the host Common Lisp, and in order to run, it needs
339  ;; %COMPILER-DEFTYPE.
340  ("src/compiler/compiler-deftype")
341
342  ;; These appear here in the build sequence because they require
343  ;;   * the macro INFO, defined in globaldb.lisp, and
344  ;;   * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
345  ;; and because they define
346  ;;   * the function SPECIFIER-TYPE, which is used in fndb.lisp.
347  ("src/code/late-type")
348  ("src/code/deftypes-for-target")
349
350  ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
351  ("src/compiler/knownfun")
352
353  ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
354  ("src/compiler/fun-info-funs")
355
356  ;; stuff needed by "code/defstruct"
357  ("src/code/cross-type" :not-target)
358  ("src/compiler/generic/vm-type")
359  ("src/compiler/proclaim")
360  ("src/code/typecheckfuns")
361
362  ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in 
363  ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
364  ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
365  ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
366  ("src/code/defstruct")
367  ("src/code/target-defstruct" :not-host)
368
369  ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
370  ;; machinery) before we can set its superclasses here.
371  ("src/code/alien-type")
372
373  ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
374  ;; the TYPE= stuff defined in late-type.lisp, and the
375  ;; CHECK-FUN-NAME defined in proclaim.lisp.
376  ("src/code/force-delayed-defbangstructs")
377
378  ("src/code/typep" :not-host)
379
380  ("src/compiler/compiler-error")
381
382  ("src/code/type-init")
383
384  ;; These define target types needed by fndb.lisp.
385  ("src/code/package")
386  ("src/code/random")
387  ("src/code/hash-table")
388  ("src/code/readtable")
389  ("src/code/pathname")
390  ("src/compiler/lexenv")
391
392  ;; KLUDGE: Much stuff above here is the type system and/or the INFO
393  ;; system, not really the compiler proper. It might be easier to
394  ;; understand the system if those things were split off into packages
395  ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
396
397  ;; In classic CMU CL (re)build order, these were done later, but
398  ;; in building from scratch, these must be loaded before
399  ;; "compiler/generic/objdef" in order to allow forms like
400  ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
401  ("src/compiler/fndb")
402  ("src/compiler/generic/vm-fndb")
403
404  ("src/compiler/generic/objdef")
405
406  ("src/compiler/generic/interr")
407
408  ("src/compiler/bit-util")
409
410  ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
411  ("src/compiler/early-assem") 
412
413  ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
414  ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
415  ;; before "compiler/main.lisp" so that those can be coded efficiently
416  ;; (and so that they don't cause lots of annoying compiler warnings
417  ;; about undefined types). 
418  ("src/compiler/generic/core")
419
420  ("src/code/load")
421
422  ("src/code/fop") ; needs macros from code/load.lisp
423
424  ("src/compiler/ctype")
425  ("src/compiler/disassem")
426  ("src/compiler/assem")
427
428  ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
429
430  ;; Compiling this requires fop definitions from code/fop.lisp and
431  ;; trace table definitions from compiler/trace-table.lisp.
432  ("src/compiler/dump"
433   ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
434   ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
435   ;; this file gives a WARNING in HEXSTR,
436   ;;   Lisp error during constant folding:
437   ;;   Argument X is not a REAL: NIL
438   ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
439   ;; which looks like
440   ;;     (cond (,end
441   ;;            (unless (or ,unsafe? (<= ,end ,size))
442   ;;              ..))
443   ;;           ..)
444   ;; where the system is trying to constant-fold the <= form when the
445   ;; ,END binding is known to be NIL at compile time. Since the <= form 
446   ;; is unreachable in that case, this shouldn't be signalling a WARNING;
447   ;; but as long as it is, we have to ignore it in order to go on.
448   :ignore-failure-p)
449
450  ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
451  ("src/compiler/target-main" :not-host)
452  ("src/compiler/ir1tran")
453  ("src/compiler/ir1-translators")
454  ("src/compiler/ir1util")
455  ("src/compiler/ir1report")
456  ("src/compiler/ir1opt")
457
458  ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
459  ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp.
460  ("src/compiler/late-vmdef")
461
462  ("src/compiler/ir1final")
463  ("src/compiler/array-tran")
464  ("src/compiler/seqtran")
465  ("src/compiler/typetran")
466  ("src/compiler/generic/vm-typetran")
467  ("src/compiler/float-tran")
468  ("src/compiler/saptran")
469  ("src/compiler/srctran")
470  ("src/compiler/locall")
471  ("src/compiler/dfo")
472  ("src/compiler/checkgen")
473  ("src/compiler/constraint")
474  ("src/compiler/physenvanal")
475
476  ("src/compiler/tn")
477  ("src/compiler/life")
478
479  ("src/code/debug-info")
480
481  ("src/compiler/debug-dump")
482  ("src/compiler/generic/utils")
483  ("src/assembly/assemfile")
484
485  ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
486
487  ("src/compiler/target/insts")
488  ("src/compiler/target/macros")
489
490  ("src/assembly/target/support")
491
492  ("src/compiler/target/move")
493  ("src/compiler/target/float")
494  ("src/compiler/target/sap")
495  ("src/compiler/target/system")
496  ("src/compiler/target/char")
497  ("src/compiler/target/memory")
498  ("src/compiler/target/static-fn")
499  ("src/compiler/target/arith"
500   ;; KLUDGE: for ppc and sparc this appears to be necessary -- see the
501   ;; comment below regarding src/compiler/target/array -- CSR,
502   ;; 2002-05-05
503   :ignore-failure-p) 
504  ("src/compiler/target/subprim")
505
506  ("src/compiler/target/debug")
507  ;; src/compiler/sparc/c-call contains a deftransform for
508  ;; %ALIEN-FUNCALL -- CSR
509  ("src/compiler/early-aliencomp")
510  ("src/compiler/target/c-call")
511  ("src/compiler/target/cell")
512  ("src/compiler/target/values")
513  ("src/compiler/target/alloc")
514  ("src/compiler/target/call")
515  ("src/compiler/target/nlx")
516  ("src/compiler/target/show")
517  ("src/compiler/target/array"
518   ;; KLUDGE: Compiling this file for X86 raises alarming warnings of
519   ;; the form
520   ;;    Argument FOO to VOP CHECK-BOUND has SC restriction
521   ;;    DESCRIPTOR-REG which is not allowed by the operand type:
522   ;;      (:OR POSITIVE-FIXNUM)
523   ;; This seems not to be something that I broke, but rather a "feature"
524   ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
525   ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
526   ;; these warnings are severe enough that they would ordinarily abort
527   ;; compilation, for now we blithely ignore them and press on to more
528   ;; pressing problems. Someday, though, it would be nice to figure out
529   ;; what the problem is and fix it. (See the comments in
530   ;; src/compiler/x86/array for a candidate patch.) -- WHN 19990323
531   :ignore-failure-p)
532  ("src/compiler/target/pred")
533  ("src/compiler/target/type-vops")
534
535  ("src/assembly/target/assem-rtns" :assem)
536  ("src/assembly/target/array"      :assem)
537  ("src/assembly/target/arith"      :assem)
538  ("src/assembly/target/alloc"      :assem)
539
540  ("src/compiler/pseudo-vops")
541
542  ("src/compiler/aliencomp")
543
544  ("src/compiler/ltv")
545  ("src/compiler/gtn")
546  ("src/compiler/ltn")
547  ("src/compiler/stack")
548  ("src/compiler/control")
549  ("src/compiler/entry")
550  ("src/compiler/ir2tran")
551
552  ("src/compiler/generic/vm-ir2tran")
553
554  ("src/compiler/copyprop")
555  ("src/compiler/represent")
556  ("src/compiler/generic/vm-tran")
557  ("src/compiler/pack")
558  ("src/compiler/codegen")
559  ("src/compiler/debug")
560
561  #!+sb-dyncount ("src/compiler/dyncount")
562  #!+sb-dyncount ("src/code/dyncount")
563
564  ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
565  ("src/code/format-time")
566
567  ;; needed by various unhappy-path cases in the cross-compiler
568  ("src/code/error")
569
570  ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
571  ;; that Python-as-cross-compiler has turned out to need.
572  ("src/code/macroexpand")
573
574  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
575  ;; files which depend in some way (directly or indirectly) on stuff
576  ;; compiled as part of the compiler
577
578  ("src/code/late-extensions") ; needs condition system
579  ("src/compiler/generic/target-core" :not-host) ; uses stuff from
580                                                 ;   "compiler/generic/core"
581
582  ("src/code/eval"              :not-host) ; uses INFO, wants compiler macro
583  ("src/code/target-sap"        :not-host) ; uses SAP-INT type
584  ("src/code/target-package"    :not-host) ; needs "code/package"
585  ("src/code/target-random"     :not-host) ; needs "code/random"
586  ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
587  ("src/code/reader"            :not-host) ; needs "code/readtable"
588  ("src/code/target-pathname"   :not-host) ; needs "code/pathname"
589  ("src/code/filesys"           :not-host) ; needs HOST from "code/pathname"
590  ("src/code/save"              :not-host) ; uses the definition of PATHNAME
591                                           ;   from "code/pathname"
592  ("src/code/sharpm"            :not-host) ; uses stuff from "code/reader"
593
594  ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
595  ("src/code/debug-int" :not-host)
596
597  ;; target-only assemblerish stuff
598  ("src/compiler/target-disassem"     :not-host)
599  ("src/compiler/target/target-insts" :not-host)
600
601  ("src/code/debug" :not-host)
602
603  ;; The code here can't be compiled until CONDITION and
604  ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
605  ;; declared special.
606  ("src/code/parse-defmacro-errors")
607
608  ("src/code/bit-bash"    :not-host) ; needs %NEGATE from assembly/target/arith
609
610  ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
611
612  ;; FIXME: Does this really need stuff from compiler/dump.lisp?
613  ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
614
615  ("src/code/cold-init" :not-host ; needs (SETF EXTERN-ALIEN) macroexpansion
616   ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
617   ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
618   ;; this file gives a WARNING in HEXSTR,
619   ;;   Lisp error during constant folding:
620   ;;   Argument X is not a REAL: NIL
621   ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
622   ;; which looks like
623   ;;     (cond (,end
624   ;;            (unless (or ,unsafe? (<= ,end ,size))
625   ;;              ..))
626   ;;           ..)
627   ;; where the system is trying to constant-fold the <= form when the
628   ;; ,END binding is known to be NIL at compile time. Since the <= form 
629   ;; is unreachable in that case, this shouldn't be signalling a WARNING;
630   ;; but as long as it is, we have to ignore it in order to go on.
631   :ignore-failure-p)
632
633  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
634  ;; target macros and DECLAIMs installed at build-the-cross-compiler time
635
636  ;; Declare all target special variables defined by ANSI now, so that
637  ;; we don't have to worry about any of them being bound incorrectly
638  ;; when the compiler processes code which appears before the appropriate
639  ;; DEFVAR or DEFPARAMETER.
640  ("src/code/cl-specials")
641
642  ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
643  ;; for them
644  ("src/code/defboot")
645  ("src/code/destructuring-bind")
646  ("src/code/early-setf")
647  ("src/code/macros")
648  ("src/code/loop")
649  ("src/code/late-setf")
650
651  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
652
653  ;; other target-code-building stuff which can't be processed until
654  ;; machinery like SB!XC:DEFMACRO exists
655
656  ("src/code/late-format") ; needs SB!XC:DEFMACRO
657  ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
658  ("src/code/signal")
659  ("src/code/late-defbangmethod"))