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