3 ;;;; This software is part of the SBCL system. See the README file for
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.
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
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.)
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
36 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
39 ;; This comes early because it's useful for debugging everywhere.
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.
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)
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
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
69 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
70 ;;; cross-compiler-only replacements for stuff which in target Lisp would be
71 ;;; supplied by basic machinery
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)
80 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
81 ;;; stuff needed early both in cross-compilation host and in target Lisp
84 ("src/code/early-defbangmethod")
86 ("src/code/defbangtype")
87 ("src/code/defbangmacro")
88 ("src/code/defbangconstant")
90 ("src/code/primordial-extensions")
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
99 ("src/code/early-extensions") ; on host for COLLECT, SYMBOLICATE, etc.
100 ("src/code/parse-body") ; on host for PARSE-BODY
101 ("src/code/parse-defmacro") ; on host for PARSE-DEFMACRO
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
106 ("src/code/specializable-array")
108 ("src/code/early-cl")
109 ("src/code/early-fasl")
111 ;; mostly needed by stuff from comcom, but also used by "x86-vm"
112 ("src/code/debug-var-io")
114 ("src/code/cold-init-helper-macros")
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.
120 ("src/code/target-defbangmethod" :not-host)
122 ("src/code/early-print" :not-host)
123 ("src/code/early-pprint" :not-host)
124 ("src/code/early-impl" :not-host)
126 ("src/code/target-extensions" :not-host)
128 ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
130 ("src/code/defbangstruct")
132 ("src/code/funutils" :not-host)
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
139 ("src/code/type-class")
141 ("src/code/early-pcounter")
142 ("src/code/pcounter" :not-host)
144 ("src/code/ansi-stream" :not-host)
146 ("src/code/sysmacs" :not-host)
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
153 ("src/code/target-error" :not-host)
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
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".
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)
174 ("src/code/pred" :not-host)
176 ("src/code/target-alieneval" :not-host)
177 ("src/code/target-c-call" :not-host)
178 ("src/code/target-allocate" :not-host)
180 ;; This needs DEFINE-ALIEN-ROUTINE from target-alieneval.
181 ("src/code/misc-aliens" :not-host)
183 ("src/code/array" :not-host)
184 ("src/code/target-sxhash" :not-host)
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)
190 ("src/code/string" :not-host)
191 ("src/code/mipsstrops" :not-host)
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)
197 ("src/code/unix" :not-host)
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)
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,
212 ("src/code/sc-offset")
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)
223 ;; FIXME: do we really want to keep this? -- CSR, 2002-08-31
224 #!+rt ("src/code/rt-vm" :not-host)
226 ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
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)
236 ("src/code/target-char" :not-host)
237 ("src/code/target-misc" :not-host)
240 ("src/code/room" :not-host)
242 ("src/code/stream" :not-host)
243 ("src/code/print" :not-host)
244 ("src/code/pprint" :not-host)
245 ("src/code/early-format")
246 ("src/code/target-format" :not-host)
247 ("src/code/defpackage" :not-host)
248 ("src/code/pp-backq" :not-host)
250 ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
252 ("src/code/serve-event" :not-host)
253 ("src/code/fd-stream" :not-host)
255 ("src/code/module" :not-host)
257 ("src/code/interr" :not-host)
259 ("src/code/query" :not-host)
261 ("src/code/sort" :not-host)
262 ("src/code/time" :not-host)
263 ("src/code/weak" :not-host)
264 ("src/code/final" :not-host)
266 ("src/code/setf-funs" :not-host)
268 ("src/code/stubs" :not-host)
270 ("src/code/exhaust" :not-host)
272 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
273 ;;; compiler (and a few miscellaneous files whose dependencies make it
274 ;;; convenient to stick them here)
276 ("src/compiler/early-c")
277 ("src/compiler/policy")
278 ("src/compiler/policies")
279 ("src/code/typedefs")
281 ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
283 ("src/compiler/macros")
284 ("src/compiler/generic/vm-macs")
286 ;; needed by "compiler/vop"
287 ("src/compiler/sset")
289 ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
290 ("src/compiler/node")
292 ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
295 ;; needed by "vm" and "primtype"
296 ("src/compiler/backend")
298 ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
299 ("src/compiler/vmdef")
302 ("src/compiler/target/backend-parms")
304 ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
305 ("src/compiler/globaldb")
306 ("src/compiler/info-functions")
308 ("src/code/force-delayed-defbangconstants")
309 ("src/code/defmacro")
310 ("src/code/force-delayed-defbangmacros")
312 ("src/compiler/late-macros")
314 ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
315 ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
316 ("src/compiler/meta-vmdef")
318 ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
319 ("src/compiler/target/vm")
321 ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
322 ("src/code/early-type")
324 ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
325 ;; around the compilation of "code/class". Why?
328 ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
330 ("src/code/condition" :not-host)
332 ("src/compiler/generic/primtype")
334 ;; the implementation of the compiler-affecting part of forms like
335 ;; DEFMACRO and DEFTYPE; must be loaded before we can start
337 ("src/compiler/parse-lambda-list")
339 ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
340 ("src/code/host-alieneval")
342 ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
343 ;; host-alieneval.lisp
344 ("src/code/host-c-call")
346 ;; SB!XC:DEFTYPE is needed in order to compile late-type
347 ;; in the host Common Lisp, and in order to run, it needs
348 ;; %COMPILER-DEFTYPE.
349 ("src/compiler/compiler-deftype")
351 ;; These appear here in the build sequence because they require
352 ;; * the macro INFO, defined in globaldb.lisp, and
353 ;; * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
354 ;; and because they define
355 ;; * the function SPECIFIER-TYPE, which is used in fndb.lisp.
356 ("src/code/late-type")
357 ("src/code/deftypes-for-target")
359 ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
360 ("src/compiler/knownfun")
362 ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
363 ("src/compiler/fun-info-funs")
365 ;; stuff needed by "code/defstruct"
366 ("src/code/cross-type" :not-target)
367 ("src/compiler/generic/vm-type")
368 ("src/compiler/proclaim")
369 ("src/code/typecheckfuns")
371 ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in
372 ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
373 ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
374 ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
375 ("src/code/defstruct")
376 ("src/code/target-defstruct" :not-host)
378 ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
379 ;; machinery) before we can set its superclasses here.
380 ("src/code/alien-type")
382 ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
383 ;; the TYPE= stuff defined in late-type.lisp, and the
384 ;; CHECK-FUN-NAME defined in proclaim.lisp.
385 ("src/code/force-delayed-defbangstructs")
387 ("src/code/typep" :not-host)
389 ("src/compiler/compiler-error")
391 ("src/code/type-init")
393 ;; These define target types needed by fndb.lisp.
396 ("src/code/hash-table")
397 ("src/code/readtable")
398 ("src/code/pathname")
399 ("src/compiler/lexenv")
401 ;; KLUDGE: Much stuff above here is the type system and/or the INFO
402 ;; system, not really the compiler proper. It might be easier to
403 ;; understand the system if those things were split off into packages
404 ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
406 ;; In classic CMU CL (re)build order, these were done later, but
407 ;; in building from scratch, these must be loaded before
408 ;; "compiler/generic/objdef" in order to allow forms like
409 ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
410 ("src/compiler/fndb")
411 ("src/compiler/generic/vm-fndb")
413 ("src/compiler/generic/objdef")
415 ("src/compiler/generic/interr")
417 ("src/compiler/bit-util")
419 ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
420 ("src/compiler/early-assem")
422 ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
423 ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
424 ;; before "compiler/main.lisp" so that those can be coded efficiently
425 ;; (and so that they don't cause lots of annoying compiler warnings
426 ;; about undefined types).
427 ("src/compiler/generic/core")
428 ("src/code/cross-thread" :not-target)
432 ("src/code/fop") ; needs macros from code/load.lisp
434 ("src/compiler/ctype")
435 ("src/compiler/disassem")
436 ("src/compiler/assem")
438 ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
440 ;; Compiling this requires fop definitions from code/fop.lisp and
441 ;; trace table definitions from compiler/trace-table.lisp.
442 ("src/compiler/dump")
444 ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
445 ("src/compiler/target-main" :not-host)
446 ("src/compiler/ir1tran")
447 ("src/compiler/ir1-translators")
448 ("src/compiler/ir1util")
449 ("src/compiler/ir1report")
450 ("src/compiler/ir1opt")
452 ("src/compiler/ir1final")
453 ("src/compiler/array-tran")
454 ("src/compiler/seqtran")
455 ("src/compiler/typetran")
456 ("src/compiler/generic/vm-typetran")
457 ("src/compiler/float-tran")
458 ("src/compiler/saptran")
459 ("src/compiler/srctran")
460 ("src/compiler/locall")
462 ("src/compiler/checkgen")
463 ("src/compiler/constraint")
464 ("src/compiler/physenvanal")
467 ("src/compiler/life")
469 ("src/code/debug-info")
471 ("src/compiler/debug-dump")
472 ("src/compiler/generic/utils")
473 ("src/assembly/assemfile")
475 ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
476 ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp, and also possibly
477 ;; the definition of the LOCATION-INFO structure (if structures in
478 ;; the host lisp have setf expanders rather than setf functions).
479 ("src/compiler/late-vmdef")
481 ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
483 ("src/compiler/target/insts")
484 ("src/compiler/target/macros")
485 ("src/compiler/generic/early-type-vops")
487 ("src/assembly/target/support")
489 ("src/compiler/target/move")
490 ("src/compiler/target/float")
491 ("src/compiler/target/sap")
492 ("src/compiler/target/system")
493 ("src/compiler/target/char")
494 ("src/compiler/target/memory")
495 ("src/compiler/target/static-fn")
496 ("src/compiler/target/arith"
497 ;; KLUDGE: for ppc and sparc this appears to be necessary -- see the
498 ;; comment below regarding src/compiler/target/array -- CSR,
501 ("src/compiler/target/subprim")
503 ("src/compiler/target/debug")
504 ;; src/compiler/sparc/c-call contains a deftransform for
505 ;; %ALIEN-FUNCALL -- CSR
506 ("src/compiler/early-aliencomp")
507 ("src/compiler/target/c-call")
508 ("src/compiler/target/cell")
509 ("src/code/late-symbol" :not-host)
510 ("src/compiler/target/values")
511 ("src/compiler/target/alloc")
512 ("src/compiler/target/call")
513 ("src/compiler/target/nlx")
514 ("src/compiler/generic/late-nlx")
515 ("src/compiler/target/show")
516 ("src/compiler/target/array"
517 ;; KLUDGE: Compiling this file for X86 raises alarming warnings of
519 ;; Argument FOO to VOP CHECK-BOUND has SC restriction
520 ;; DESCRIPTOR-REG which is not allowed by the operand type:
521 ;; (:OR POSITIVE-FIXNUM)
522 ;; This seems not to be something that I broke, but rather a "feature"
523 ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
524 ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
525 ;; these warnings are severe enough that they would ordinarily abort
526 ;; compilation, for now we blithely ignore them and press on to more
527 ;; pressing problems. Someday, though, it would be nice to figure out
528 ;; what the problem is and fix it. (See the comments in
529 ;; src/compiler/x86/array for a candidate patch.) -- WHN 19990323
531 ("src/compiler/generic/array")
532 ("src/compiler/target/pred")
534 ("src/compiler/target/type-vops")
535 ("src/compiler/generic/late-type-vops")
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:
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)
551 ("src/compiler/pseudo-vops")
553 ("src/compiler/aliencomp")
558 ("src/compiler/stack")
559 ("src/compiler/control")
560 ("src/compiler/entry")
561 ("src/compiler/ir2tran")
563 ("src/compiler/generic/vm-ir2tran")
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")
572 #!+sb-dyncount ("src/compiler/dyncount")
573 #!+sb-dyncount ("src/code/dyncount")
575 ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
576 ("src/code/format-time")
578 ;; needed by various unhappy-path cases in the cross-compiler
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")
585 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
586 ;; files which depend in some way (directly or indirectly) on stuff
587 ;; compiled as part of the compiler
589 ("src/code/late-extensions") ; needs condition system
590 ("src/compiler/generic/target-core" :not-host) ; uses stuff from
591 ; "compiler/generic/core"
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"
606 ("src/code/target-thread" :not-host)
608 ("src/code/target-unithread" :not-host)
609 ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
610 ("src/code/gc" :not-host)
611 ("src/code/purify" :not-host)
612 ("src/code/debug-int" :not-host)
614 ;; target-only assemblerish stuff
615 ("src/compiler/target-disassem" :not-host)
616 ("src/compiler/target/target-insts" :not-host)
618 ("src/code/debug" :not-host)
620 ;; The code here can't be compiled until CONDITION and
621 ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
623 ("src/code/parse-defmacro-errors")
625 ("src/code/bit-bash" :not-host) ; needs %NEGATE from assembly/target/arith
627 ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
628 ("src/compiler/target/sanctify" :not-host)
630 ;; FIXME: Does this really need stuff from compiler/dump.lisp?
631 ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
633 ("src/code/cold-init" :not-host) ; needs (SETF EXTERN-ALIEN) macroexpansion
635 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
636 ;; target macros and DECLAIMs installed at build-the-cross-compiler time
638 ;; Declare all target special variables defined by ANSI now, so that
639 ;; we don't have to worry about any of them being bound incorrectly
640 ;; when the compiler processes code which appears before the appropriate
641 ;; DEFVAR or DEFPARAMETER.
642 ("src/code/cl-specials")
644 ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
647 ("src/code/destructuring-bind")
648 ("src/code/early-setf")
651 ("src/code/late-setf")
653 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
654 ;; other target-code-building stuff which can't be processed until
655 ;; machinery like SB!XC:DEFMACRO exists
657 ("src/code/late-format") ; needs SB!XC:DEFMACRO
658 ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
660 ("src/code/late-defbangmethod")
662 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
663 ;; PCL-related stuff, which shouldn't need to be done earlier than
664 ;; anything else in cold build because after all it used to be
665 ;; postponed 'til warm init with no problems.