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