0.7.12.10:
[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  #!+mp ("src/code/multi-proc" :not-host)
269
270  ("src/code/setf-funs" :not-host)
271
272  ("src/code/stubs" :not-host)
273
274  ("src/code/exhaust" :not-host)
275
276  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
277  ;;; compiler (and a few miscellaneous files whose dependencies make it
278  ;;; convenient to stick them here)
279
280  ("src/compiler/early-c")
281  ("src/compiler/policy")
282  ("src/compiler/policies")
283  ("src/code/typedefs")
284
285  ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
286
287  ("src/compiler/macros")
288  ("src/compiler/generic/vm-macs")
289
290  ;; needed by "compiler/vop"
291  ("src/compiler/sset")
292
293  ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
294  ("src/compiler/node")
295
296  ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
297  ("src/compiler/vop")
298
299  ;; needed by "vm" and "primtype"
300  ("src/compiler/backend")
301
302  ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
303  ("src/compiler/vmdef")
304
305  ;; needs "backend"
306  ("src/compiler/target/backend-parms")
307
308  ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
309  ("src/compiler/globaldb")
310  ("src/compiler/info-functions")
311
312  ("src/code/force-delayed-defbangconstants")
313  ("src/code/defmacro")
314  ("src/code/force-delayed-defbangmacros")
315
316  ("src/compiler/late-macros")
317
318  ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
319  ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
320  ("src/compiler/meta-vmdef")
321
322  ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
323  ("src/compiler/target/vm")
324
325  ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
326  ("src/code/early-type")
327
328  ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
329  ;; around the compilation of "code/class". Why?
330  ("src/code/class")
331
332  ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
333  ;; in class.lisp.
334  ("src/code/condition" :not-host)
335
336  ("src/compiler/generic/primtype")
337
338  ;; the implementation of the compiler-affecting part of forms like
339  ;; DEFMACRO and DEFTYPE; must be loaded before we can start
340  ;; defining types
341  ("src/compiler/parse-lambda-list")
342
343  ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
344  ("src/code/host-alieneval")
345
346  ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
347  ;; host-alieneval.lisp
348  ("src/code/host-c-call")
349
350  ;; SB!XC:DEFTYPE is needed in order to compile late-type
351  ;; in the host Common Lisp, and in order to run, it needs
352  ;; %COMPILER-DEFTYPE.
353  ("src/compiler/compiler-deftype")
354
355  ;; These appear here in the build sequence because they require
356  ;;   * the macro INFO, defined in globaldb.lisp, and
357  ;;   * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
358  ;; and because they define
359  ;;   * the function SPECIFIER-TYPE, which is used in fndb.lisp.
360  ("src/code/late-type")
361  ("src/code/deftypes-for-target")
362
363  ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
364  ("src/compiler/knownfun")
365
366  ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
367  ("src/compiler/fun-info-funs")
368
369  ;; stuff needed by "code/defstruct"
370  ("src/code/cross-type" :not-target)
371  ("src/compiler/generic/vm-type")
372  ("src/compiler/proclaim")
373  ("src/code/typecheckfuns")
374
375  ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in 
376  ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
377  ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
378  ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
379  ("src/code/defstruct")
380  ("src/code/target-defstruct" :not-host)
381
382  ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
383  ;; machinery) before we can set its superclasses here.
384  ("src/code/alien-type")
385
386  ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
387  ;; the TYPE= stuff defined in late-type.lisp, and the
388  ;; CHECK-FUN-NAME defined in proclaim.lisp.
389  ("src/code/force-delayed-defbangstructs")
390
391  ("src/code/typep" :not-host)
392
393  ("src/compiler/compiler-error")
394
395  ("src/code/type-init")
396
397  ;; These define target types needed by fndb.lisp.
398  ("src/code/package")
399  ("src/code/random")
400  ("src/code/hash-table")
401  ("src/code/readtable")
402  ("src/code/pathname")
403  ("src/compiler/lexenv")
404
405  ;; KLUDGE: Much stuff above here is the type system and/or the INFO
406  ;; system, not really the compiler proper. It might be easier to
407  ;; understand the system if those things were split off into packages
408  ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
409
410  ;; In classic CMU CL (re)build order, these were done later, but
411  ;; in building from scratch, these must be loaded before
412  ;; "compiler/generic/objdef" in order to allow forms like
413  ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
414  ("src/compiler/fndb")
415  ("src/compiler/generic/vm-fndb")
416
417  ("src/compiler/generic/objdef")
418
419  ("src/compiler/generic/interr")
420
421  ("src/compiler/bit-util")
422
423  ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
424  ("src/compiler/early-assem") 
425
426  ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
427  ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
428  ;; before "compiler/main.lisp" so that those can be coded efficiently
429  ;; (and so that they don't cause lots of annoying compiler warnings
430  ;; about undefined types). 
431  ("src/compiler/generic/core")
432
433  ("src/code/load")
434
435  ("src/code/fop") ; needs macros from code/load.lisp
436
437  ("src/compiler/ctype")
438  ("src/compiler/disassem")
439  ("src/compiler/assem")
440
441  ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
442
443  ;; Compiling this requires fop definitions from code/fop.lisp and
444  ;; trace table definitions from compiler/trace-table.lisp.
445  ("src/compiler/dump")
446
447  ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
448  ("src/compiler/target-main" :not-host)
449  ("src/compiler/ir1tran")
450  ("src/compiler/ir1-translators")
451  ("src/compiler/ir1util")
452  ("src/compiler/ir1report")
453  ("src/compiler/ir1opt")
454
455  ("src/compiler/ir1final")
456  ("src/compiler/array-tran")
457  ("src/compiler/seqtran")
458  ("src/compiler/typetran")
459  ("src/compiler/generic/vm-typetran")
460  ("src/compiler/float-tran")
461  ("src/compiler/saptran")
462  ("src/compiler/srctran")
463  ("src/compiler/locall")
464  ("src/compiler/dfo")
465  ("src/compiler/checkgen")
466  ("src/compiler/constraint")
467  ("src/compiler/physenvanal")
468
469  ("src/compiler/tn")
470  ("src/compiler/life")
471
472  ("src/code/debug-info")
473
474  ("src/compiler/debug-dump")
475  ("src/compiler/generic/utils")
476  ("src/assembly/assemfile")
477
478  ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
479  ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp, and also possibly
480  ;; the definition of the LOCATION-INFO structure (if structures in
481  ;; the host lisp have setf expanders rather than setf functions).
482  ("src/compiler/late-vmdef")
483
484  ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
485
486  ("src/compiler/target/insts")
487  ("src/compiler/target/macros")
488  ("src/compiler/generic/early-type-vops")
489
490  ("src/assembly/target/support")
491
492  ("src/compiler/target/move")
493  ("src/compiler/target/float")
494  ("src/compiler/target/sap")
495  ("src/compiler/target/system")
496  ("src/compiler/target/char")
497  ("src/compiler/target/memory")
498  ("src/compiler/target/static-fn")
499  ("src/compiler/target/arith"
500   ;; KLUDGE: for ppc and sparc this appears to be necessary -- see the
501   ;; comment below regarding src/compiler/target/array -- CSR,
502   ;; 2002-05-05
503   :ignore-failure-p) 
504  ("src/compiler/target/subprim")
505
506  ("src/compiler/target/debug")
507  ;; src/compiler/sparc/c-call contains a deftransform for
508  ;; %ALIEN-FUNCALL -- CSR
509  ("src/compiler/early-aliencomp")
510  ("src/compiler/target/c-call")
511  ("src/compiler/target/cell")
512  ("src/compiler/target/values")
513  ("src/compiler/target/alloc")
514  ("src/compiler/target/call")
515  ("src/compiler/target/nlx")
516  ("src/compiler/target/show")
517  ("src/compiler/target/array"
518   ;; KLUDGE: Compiling this file for X86 raises alarming warnings of
519   ;; the form
520   ;;    Argument FOO to VOP CHECK-BOUND has SC restriction
521   ;;    DESCRIPTOR-REG which is not allowed by the operand type:
522   ;;      (:OR POSITIVE-FIXNUM)
523   ;; This seems not to be something that I broke, but rather a "feature"
524   ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
525   ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
526   ;; these warnings are severe enough that they would ordinarily abort
527   ;; compilation, for now we blithely ignore them and press on to more
528   ;; pressing problems. Someday, though, it would be nice to figure out
529   ;; what the problem is and fix it. (See the comments in
530   ;; src/compiler/x86/array for a candidate patch.) -- WHN 19990323
531   :ignore-failure-p)
532  ("src/compiler/target/pred")
533
534  ("src/compiler/target/type-vops")
535  ("src/compiler/generic/late-type-vops")
536
537  ;; KLUDGE: The assembly files need to be compiled twice: once as
538  ;; normal lisp files, and once by sb-c:assemble-file.  We play some
539  ;; symlink games to make sure we don't scribble over anything we
540  ;; shouldn't, but these are actually the same files:
541
542  ("src/compiler/assembly/target/assem-rtns")
543  ("src/compiler/assembly/target/array")
544  ("src/compiler/assembly/target/arith")
545  ("src/compiler/assembly/target/alloc")
546  ("src/assembly/target/assem-rtns" :assem :not-host)
547  ("src/assembly/target/array"      :assem :not-host)
548  ("src/assembly/target/arith"      :assem :not-host)
549  ("src/assembly/target/alloc"      :assem :not-host)
550
551  ("src/compiler/pseudo-vops")
552
553  ("src/compiler/aliencomp")
554
555  ("src/compiler/ltv")
556  ("src/compiler/gtn")
557  ("src/compiler/ltn")
558  ("src/compiler/stack")
559  ("src/compiler/control")
560  ("src/compiler/entry")
561  ("src/compiler/ir2tran")
562
563  ("src/compiler/generic/vm-ir2tran")
564
565  ("src/compiler/copyprop")
566  ("src/compiler/represent")
567  ("src/compiler/generic/vm-tran")
568  ("src/compiler/pack")
569  ("src/compiler/codegen")
570  ("src/compiler/debug")
571
572  #!+sb-dyncount ("src/compiler/dyncount")
573  #!+sb-dyncount ("src/code/dyncount")
574
575  ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
576  ("src/code/format-time")
577
578  ;; needed by various unhappy-path cases in the cross-compiler
579  ("src/code/error")
580
581  ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
582  ;; that Python-as-cross-compiler has turned out to need.
583  ("src/code/macroexpand")
584
585  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
586  ;; files which depend in some way (directly or indirectly) on stuff
587  ;; compiled as part of the compiler
588
589  ("src/code/late-extensions") ; needs condition system
590  ("src/compiler/generic/target-core" :not-host) ; uses stuff from
591                                                 ;   "compiler/generic/core"
592
593  ("src/code/eval"              :not-host) ; uses INFO, wants compiler macro
594  ("src/code/target-sap"        :not-host) ; uses SAP-INT type
595  ("src/code/target-package"    :not-host) ; needs "code/package"
596  ("src/code/target-random"     :not-host) ; needs "code/random"
597  ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
598  ("src/code/reader"            :not-host) ; needs "code/readtable"
599  ("src/code/target-pathname"   :not-host) ; needs "code/pathname"
600  ("src/code/filesys"           :not-host) ; needs HOST from "code/pathname"
601  ("src/code/save"              :not-host) ; uses the definition of PATHNAME
602                                           ;   from "code/pathname"
603  ("src/code/sharpm"            :not-host) ; uses stuff from "code/reader"
604
605  ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
606  ("src/code/debug-int" :not-host)
607
608  ;; target-only assemblerish stuff
609  ("src/compiler/target-disassem"     :not-host)
610  ("src/compiler/target/target-insts" :not-host)
611
612  ("src/code/debug" :not-host)
613
614  ;; The code here can't be compiled until CONDITION and
615  ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
616  ;; declared special.
617  ("src/code/parse-defmacro-errors")
618
619  ("src/code/bit-bash"    :not-host) ; needs %NEGATE from assembly/target/arith
620
621  ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
622  ("src/compiler/target/sanctify" :not-host) 
623  
624  ;; FIXME: Does this really need stuff from compiler/dump.lisp?
625  ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
626
627  ("src/code/cold-init" :not-host) ; needs (SETF EXTERN-ALIEN) macroexpansion
628
629  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
630  ;; target macros and DECLAIMs installed at build-the-cross-compiler time
631
632  ;; Declare all target special variables defined by ANSI now, so that
633  ;; we don't have to worry about any of them being bound incorrectly
634  ;; when the compiler processes code which appears before the appropriate
635  ;; DEFVAR or DEFPARAMETER.
636  ("src/code/cl-specials")
637
638  ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
639  ;; for them
640  ("src/code/defboot")
641  ("src/code/destructuring-bind")
642  ("src/code/early-setf")
643  ("src/code/macros")
644  ("src/code/loop")
645  ("src/code/late-setf")
646
647  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
648
649  ;; other target-code-building stuff which can't be processed until
650  ;; machinery like SB!XC:DEFMACRO exists
651
652  ("src/code/late-format") ; needs SB!XC:DEFMACRO
653  ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
654  ("src/code/signal")
655  ("src/code/late-defbangmethod"))