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