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