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