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