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