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 ("src/code/cold-init-helper-macros")
71 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
72 ;;; cross-compiler-only replacements for stuff which in target Lisp would be
73 ;;; supplied by basic machinery
75 ("src/code/cross-misc" :not-target)
76 ("src/code/cross-byte" :not-target)
77 ("src/code/cross-float" :not-target)
78 ("src/code/cross-io" :not-target)
79 ("src/code/cross-sap" :not-target)
80 ("src/code/cross-make-load-form" :not-target)
82 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
83 ;;; stuff needed early both in cross-compilation host and in target Lisp
86 ("src/code/early-defbangmethod")
88 ("src/code/defbangtype")
89 ("src/code/defbangmacro")
90 ("src/code/defbangconstant")
92 ("src/code/primordial-extensions")
94 ;; comes early so that stuff can reason about function names
95 ("src/code/function-names")
97 ;; for various constants e.g. SB!XC:MOST-POSITIVE-FIXNUM and
98 ;; SB!VM:N-LOWTAG-BITS, needed by "early-objdef" and others
99 ("src/compiler/generic/early-vm")
100 ("src/compiler/generic/early-objdef")
101 ("src/compiler/target/parms")
102 ("src/code/early-array") ; needs "early-vm" numbers
104 ("src/code/early-extensions") ; on host for COLLECT, SYMBOLICATE, etc.
105 ("src/code/parse-body") ; on host for PARSE-BODY
106 ("src/code/parse-defmacro") ; on host for PARSE-DEFMACRO
107 ("src/compiler/deftype") ; on host for SB!XC:DEFTYPE
108 ("src/compiler/defconstant")
109 ("src/code/early-alieneval") ; for vars needed both at build and run time
111 ("src/code/specializable-array")
113 ("src/code/early-cl")
114 ("src/code/early-fasl")
116 ;; mostly needed by stuff from comcom, but also used by "x86-vm"
117 ("src/code/debug-var-io")
119 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
120 ;;; basic machinery for the target Lisp. Note that although most of these
121 ;;; files are flagged :NOT-HOST, a few might not be.
123 ("src/code/target-defbangmethod" :not-host)
125 ("src/code/early-print" :not-host)
126 ("src/code/early-pprint" :not-host)
127 ("src/code/early-impl" :not-host)
129 ("src/code/target-extensions" :not-host)
131 ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
133 ("src/code/defbangstruct")
135 ("src/code/unportable-float")
137 ("src/code/funutils" :not-host)
139 ;; This needs DEF!STRUCT, and is itself needed early so that structure
140 ;; accessors and inline functions defined here can be compiled inline
141 ;; later. (Avoiding full calls not only increases efficiency, but also
142 ;; avoids some cold init issues involving full calls to structure
144 ("src/code/type-class")
146 ("src/code/early-pcounter")
147 ("src/code/pcounter" :not-host)
149 ("src/code/ansi-stream" :not-host)
151 ("src/code/sysmacs" :not-host)
153 ;; "assembly/assemfile" was here in the sequence inherited from
154 ;; CMU CL worldcom.lisp, but also appears later in the sequence
155 ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
156 ;; so I've deleted the one here. -- WHN 19990620
158 ("src/code/target-error" :not-host)
160 ;; a comment from classic CMU CL:
161 ;; "These guys can supposedly come in any order, but not really.
162 ;; Some are put at the end so that macros don't run interpreted
164 ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
165 ;; FIXME: more informative and up-to-date comment?
166 ("src/code/kernel" :not-host)
167 ("src/code/toplevel" :not-host)
168 ("src/code/cold-error" :not-host)
169 ("src/code/fdefinition" :not-host)
170 ;; FIXME: Figure out some way to make the compiler macro for INFO
171 ;; available for compilation of "code/fdefinition".
173 ;; In classic CMU CL, code/type was here. I've since split that into
174 ;; lots of smaller pieces, some of which are here and some of which
175 ;; are handled later in the sequence, when the cross-compiler is
176 ;; built. -- WHN 19990620
177 ("src/code/target-type" :not-host)
179 ("src/code/pred" :not-host)
181 ("src/code/target-alieneval" :not-host)
182 ("src/code/target-c-call" :not-host)
183 ("src/code/target-allocate" :not-host)
185 ;; This needs DEFINE-ALIEN-ROUTINE from target-alieneval.
186 ("src/code/misc-aliens" :not-host)
188 ("src/code/array" :not-host)
189 ("src/code/target-sxhash" :not-host)
191 ("src/code/list" :not-host)
192 ("src/code/seq" :not-host) ; "code/seq" should come after "code/list".
193 ("src/code/coerce" :not-host)
195 ("src/code/string" :not-host)
196 ("src/code/mipsstrops" :not-host)
198 ;; "src/code/unix.lisp" needs this. It's generated automatically by
199 ;; grovel_headers.c, i.e. it's not in CVS.
200 ("output/stuff-groveled-from-headers" :not-host)
202 ("src/code/unix" :not-host)
204 #!+mach ("src/code/mach" :not-host)
205 #!+mach ("src/code/mach-os" :not-host)
206 #!+sunos ("src/code/sunos-os" :not-host)
207 #!+hpux ("src/code/hpux-os" :not-host)
208 #!+osf1 ("src/code/osf1-os" :not-host)
209 #!+irix ("src/code/irix-os" :not-host)
210 #!+bsd ("src/code/bsd-os" :not-host)
211 #!+linux ("src/code/linux-os" :not-host)
213 ;; sparc-vm and ppc-vm need sc-offset defined to get at internal
214 ;; error args. This file contains stuff previously in
215 ;; debug-info.lisp. Should it therefore be :not-host? -- CSR,
217 ("src/code/sc-offset")
219 ;; KLUDGE: I'd prefer to have this done with a "code/target" softlink
220 ;; instead of a bunch of reader macros. -- WHN 19990308
221 #!+sparc ("src/code/sparc-vm" :not-host)
222 #!+hppa ("src/code/hppa-vm" :not-host)
223 #!+x86 ("src/code/x86-vm" :not-host)
224 #!+ppc ("src/code/ppc-vm" :not-host)
225 #!+alpha ("src/code/alpha-vm" :not-host)
226 #!+mips ("src/code/mips-vm" :not-host)
228 ;; FIXME: do we really want to keep this? -- CSR, 2002-08-31
229 #!+rt ("src/code/rt-vm" :not-host)
231 ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
233 ("src/code/symbol" :not-host)
234 ("src/code/bignum" :not-host)
235 ("src/code/numbers" :not-host)
236 ("src/code/float-trap" :not-host)
237 ("src/code/float" :not-host)
238 ("src/code/irrat" :not-host)
241 ("src/code/target-char" :not-host)
242 ("src/code/target-misc" :not-host)
245 ("src/code/room" :not-host)
247 ("src/code/stream" :not-host)
248 ("src/code/print" :not-host)
249 ("src/code/pprint" :not-host)
250 ("src/code/early-format")
251 ("src/code/target-format" :not-host)
252 ("src/code/defpackage" :not-host)
253 ("src/code/pp-backq" :not-host)
255 ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
257 ("src/code/serve-event" :not-host)
258 ("src/code/fd-stream" :not-host)
260 ("src/code/module" :not-host)
262 ("src/code/interr" :not-host)
264 ("src/code/query" :not-host)
266 ("src/code/sort" :not-host)
267 ("src/code/time" :not-host)
268 ("src/code/weak" :not-host)
269 ("src/code/final" :not-host)
271 ("src/code/setf-funs" :not-host)
273 ("src/code/stubs" :not-host)
275 ("src/code/exhaust" :not-host)
277 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
278 ;;; compiler (and a few miscellaneous files whose dependencies make it
279 ;;; convenient to stick them here)
281 ("src/compiler/early-c")
282 ("src/compiler/policy")
283 ("src/compiler/policies")
284 ("src/code/typedefs")
286 ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
288 ("src/compiler/macros")
289 ("src/compiler/generic/vm-macs")
291 ;; needed by "compiler/vop"
292 ("src/compiler/sset")
294 ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
295 ("src/compiler/node")
297 ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
300 ;; needed by "vm" and "primtype"
301 ("src/compiler/backend")
303 ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
304 ("src/compiler/vmdef")
307 ("src/compiler/target/backend-parms")
309 ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
310 ("src/compiler/globaldb")
311 ("src/compiler/info-functions")
313 ("src/code/force-delayed-defbangconstants")
314 ("src/code/defmacro")
315 ("src/code/force-delayed-defbangmacros")
317 ("src/compiler/late-macros")
319 ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
320 ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
321 ("src/compiler/meta-vmdef")
323 ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
324 ("src/compiler/target/vm")
326 ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
327 ("src/code/early-type")
329 ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
330 ;; around the compilation of "code/class". Why?
333 ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
335 ("src/code/condition" :not-host)
337 ("src/compiler/generic/primtype")
339 ;; the implementation of the compiler-affecting part of forms like
340 ;; DEFMACRO and DEFTYPE; must be loaded before we can start
342 ("src/compiler/parse-lambda-list")
344 ;; The following two files trigger function/macro redefinition
345 ;; warnings in clisp during make-host-2; as a workaround, we ignore
346 ;; the failure values from COMPILE-FILE under clisp.
348 ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
349 ("src/code/host-alieneval" #+clisp :ignore-failure-p)
351 ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
352 ;; host-alieneval.lisp
353 ("src/code/host-c-call" #+clisp :ignore-failure-p)
355 ;; SB!XC:DEFTYPE is needed in order to compile late-type
356 ;; in the host Common Lisp, and in order to run, it needs
357 ;; %COMPILER-DEFTYPE.
358 ("src/compiler/compiler-deftype")
360 ;; These appear here in the build sequence because they require
361 ;; * the macro INFO, defined in globaldb.lisp, and
362 ;; * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
363 ;; and because they define
364 ;; * the function SPECIFIER-TYPE, which is used in fndb.lisp.
365 ("src/code/late-type")
366 ("src/code/deftypes-for-target")
368 ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
369 ("src/compiler/knownfun")
371 ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
372 ("src/compiler/fun-info-funs")
374 ;; stuff needed by "code/defstruct"
375 ("src/code/cross-type" :not-target)
376 ("src/compiler/generic/vm-type")
377 ("src/compiler/proclaim")
378 ("src/code/typecheckfuns")
380 ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in
381 ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
382 ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
383 ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
384 ("src/code/defstruct")
385 ("src/code/target-defstruct" :not-host)
387 ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
388 ;; machinery) before we can set its superclasses here.
389 ("src/code/alien-type")
391 ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
392 ;; the TYPE= stuff defined in late-type.lisp, and the
393 ;; CHECK-FUN-NAME defined in proclaim.lisp.
394 ("src/code/force-delayed-defbangstructs")
396 ("src/code/typep" :not-host)
398 ("src/compiler/compiler-error")
400 ("src/code/type-init")
402 ;; These define target types needed by fndb.lisp.
405 ("src/code/hash-table")
406 ("src/code/readtable")
407 ("src/code/pathname")
408 ("src/compiler/lexenv")
410 ;; KLUDGE: Much stuff above here is the type system and/or the INFO
411 ;; system, not really the compiler proper. It might be easier to
412 ;; understand the system if those things were split off into packages
413 ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
415 ;; In classic CMU CL (re)build order, these were done later, but
416 ;; in building from scratch, these must be loaded before
417 ;; "compiler/generic/objdef" in order to allow forms like
418 ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
419 ("src/compiler/fndb")
420 ("src/compiler/generic/vm-fndb")
422 ("src/compiler/generic/objdef")
424 ("src/compiler/generic/interr")
426 ("src/compiler/bit-util")
428 ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
429 ("src/compiler/early-assem")
431 ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
432 ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
433 ;; before "compiler/main.lisp" so that those can be coded efficiently
434 ;; (and so that they don't cause lots of annoying compiler warnings
435 ;; about undefined types).
436 ("src/compiler/generic/core")
437 ("src/code/cross-thread" :not-target)
441 ("src/code/fop") ; needs macros from code/load.lisp
443 ("src/compiler/ctype")
444 ("src/compiler/disassem")
445 ("src/compiler/assem")
447 ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
449 ;; Compiling this requires fop definitions from code/fop.lisp and
450 ;; trace table definitions from compiler/trace-table.lisp.
451 ("src/compiler/dump")
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")
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")
471 ("src/compiler/checkgen")
472 ("src/compiler/constraint")
473 ("src/compiler/physenvanal")
476 ("src/compiler/life")
478 ("src/code/debug-info")
480 ("src/compiler/debug-dump")
481 ("src/compiler/generic/utils")
482 ("src/assembly/assemfile")
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")
490 ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
492 ("src/compiler/target/insts")
493 ("src/compiler/target/macros")
494 ("src/compiler/generic/early-type-vops")
496 ("src/assembly/target/support")
498 ("src/compiler/target/move")
499 ("src/compiler/target/float")
500 ("src/compiler/target/sap")
501 ("src/compiler/target/system")
502 ("src/compiler/target/char")
503 ("src/compiler/target/memory")
504 ("src/compiler/target/static-fn")
505 ("src/compiler/target/arith"
506 ;; KLUDGE: for ppc and sparc this appears to be necessary -- see the
507 ;; comment below regarding src/compiler/target/array -- CSR,
510 ("src/compiler/target/subprim")
512 ("src/compiler/target/debug")
513 ;; src/compiler/sparc/c-call contains a deftransform for
514 ;; %ALIEN-FUNCALL -- CSR
515 ("src/compiler/early-aliencomp")
516 ("src/compiler/target/c-call")
517 ("src/compiler/target/cell")
518 ("src/compiler/target/values")
519 ("src/compiler/target/alloc")
520 ("src/compiler/target/call")
521 ("src/compiler/target/nlx")
522 ("src/compiler/generic/late-nlx")
523 ("src/compiler/target/show")
524 ("src/compiler/target/array"
525 ;; KLUDGE: Compiling this file for X86 raises alarming warnings of
527 ;; Argument FOO to VOP CHECK-BOUND has SC restriction
528 ;; DESCRIPTOR-REG which is not allowed by the operand type:
529 ;; (:OR POSITIVE-FIXNUM)
530 ;; This seems not to be something that I broke, but rather a "feature"
531 ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
532 ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
533 ;; these warnings are severe enough that they would ordinarily abort
534 ;; compilation, for now we blithely ignore them and press on to more
535 ;; pressing problems. Someday, though, it would be nice to figure out
536 ;; what the problem is and fix it. (See the comments in
537 ;; src/compiler/x86/array for a candidate patch.) -- WHN 19990323
539 ("src/compiler/generic/array")
540 ("src/compiler/target/pred")
542 ("src/compiler/target/type-vops")
543 ("src/compiler/generic/late-type-vops")
545 ;; KLUDGE: The assembly files need to be compiled twice: once as
546 ;; normal lisp files, and once by sb-c:assemble-file. We play some
547 ;; symlink games to make sure we don't scribble over anything we
548 ;; shouldn't, but these are actually the same files:
550 ("src/compiler/assembly/target/assem-rtns")
551 ("src/compiler/assembly/target/array")
552 ("src/compiler/assembly/target/arith")
553 ("src/compiler/assembly/target/alloc")
554 ("src/assembly/target/assem-rtns" :assem :not-host)
555 ("src/assembly/target/array" :assem :not-host)
556 ("src/assembly/target/arith" :assem :not-host)
557 ("src/assembly/target/alloc" :assem :not-host)
559 ("src/compiler/pseudo-vops")
561 ("src/compiler/aliencomp")
566 ("src/compiler/stack")
567 ("src/compiler/control")
568 ("src/compiler/entry")
569 ("src/compiler/ir2tran")
571 ("src/compiler/generic/vm-ir2tran")
573 ("src/compiler/copyprop")
574 ("src/compiler/represent")
575 ("src/compiler/generic/vm-tran")
576 ("src/compiler/pack")
577 ("src/compiler/codegen")
578 ("src/compiler/debug")
580 #!+sb-dyncount ("src/compiler/dyncount")
581 #!+sb-dyncount ("src/code/dyncount")
583 ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
584 ("src/code/format-time")
586 ;; needed by various unhappy-path cases in the cross-compiler
589 ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
590 ;; that Python-as-cross-compiler has turned out to need.
591 ("src/code/macroexpand")
593 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
594 ;; files which depend in some way (directly or indirectly) on stuff
595 ;; compiled as part of the compiler
597 ("src/code/late-extensions") ; needs condition system
598 ("src/compiler/generic/target-core" :not-host) ; uses stuff from
599 ; "compiler/generic/core"
601 ("src/code/eval" :not-host) ; uses INFO, wants compiler macro
602 ("src/code/target-sap" :not-host) ; uses SAP-INT type
603 ("src/code/target-package" :not-host) ; needs "code/package"
604 ("src/code/target-random" :not-host) ; needs "code/random"
605 ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
606 ("src/code/reader" :not-host) ; needs "code/readtable"
607 ("src/code/target-pathname" :not-host) ; needs "code/pathname"
608 ("src/code/filesys" :not-host) ; needs HOST from "code/pathname"
609 ("src/code/save" :not-host) ; uses the definition of PATHNAME
610 ; from "code/pathname"
611 ("src/code/sharpm" :not-host) ; uses stuff from "code/reader"
614 ("src/code/target-thread" :not-host)
616 ("src/code/target-unithread" :not-host)
617 ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
618 ("src/code/gc" :not-host)
619 ("src/code/purify" :not-host)
620 ("src/code/debug-int" :not-host)
622 ;; target-only assemblerish stuff
623 ("src/compiler/target-disassem" :not-host)
624 ("src/compiler/target/target-insts" :not-host)
626 ("src/code/debug" :not-host)
628 ;; The code here can't be compiled until CONDITION and
629 ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
631 ("src/code/parse-defmacro-errors")
633 ("src/code/bit-bash" :not-host) ; needs %NEGATE from assembly/target/arith
635 ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
636 ("src/compiler/target/sanctify" :not-host)
638 ;; FIXME: Does this really need stuff from compiler/dump.lisp?
639 ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
641 ("src/code/cold-init" :not-host) ; needs (SETF EXTERN-ALIEN) macroexpansion
643 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
644 ;; target macros and DECLAIMs installed at build-the-cross-compiler time
646 ;; Declare all target special variables defined by ANSI now, so that
647 ;; we don't have to worry about any of them being bound incorrectly
648 ;; when the compiler processes code which appears before the appropriate
649 ;; DEFVAR or DEFPARAMETER.
650 ("src/code/cl-specials")
652 ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
655 ("src/code/destructuring-bind")
656 ("src/code/early-setf")
659 ("src/code/late-setf")
661 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
662 ;; other target-code-building stuff which can't be processed until
663 ;; machinery like SB!XC:DEFMACRO exists
665 ("src/code/late-format") ; needs SB!XC:DEFMACRO
666 ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
668 ("src/code/late-defbangmethod")
670 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
671 ;; PCL-related stuff, which shouldn't need to be done earlier than
672 ;; anything else in cold build because after all it used to be
673 ;; postponed 'til warm init with no problems.