1.0.3.30: More compact typechecks on x86-64
[sbcl.git] / make-target-2-load.lisp
blob9d7dff6122752153ef0268dc068e92e65893a671
1 ;;; Now that we use the compiler for macros, interpreted /SHOW doesn't
2 ;;; work until later in init.
3 #+sb-show (print "/hello, world!")
5 ;;; Until PRINT-OBJECT and other machinery is set up, we want limits
6 ;;; on printing to avoid infinite output. (Don't forget to undo these
7 ;;; tweaks after the printer is set up. It'd be cleaner to use LET to
8 ;;; make sure that happens automatically, but LET is implemented in
9 ;;; terms of the compiler, and the compiler isn't initialized yet.)
10 (setq *print-length* 10)
11 (setq *print-level* 5)
12 (setq *print-circle* t)
14 ;;; Do warm init without compiling files.
15 (defvar *compile-files-p* nil)
16 #+sb-show (print "/about to LOAD warm.lisp (with *compile-files-p* = NIL)")
17 (load "src/cold/warm.lisp")
19 ;;; Unintern no-longer-needed stuff before the possible PURIFY in
20 ;;; SAVE-LISP-AND-DIE.
21 #-sb-fluid (sb-impl::!unintern-init-only-stuff)
23 ;;; Now that the whole system is built, we don't need to hobble the
24 ;;; printer any more, so we can restore printer control variables to
25 ;;; their ANSI defaults.
26 (setq *print-length* nil)
27 (setq *print-level* nil)
28 (setq *print-circle* nil)
30 (sb-int:/show "done with warm.lisp, about to GC :FULL T")
31 (sb-ext:gc :full t)
33 ;;; resetting compilation policy to neutral values in preparation for
34 ;;; SAVE-LISP-AND-DIE as final SBCL core (not in warm.lisp because
35 ;;; SB-C::*POLICY* has file scope)
36 (sb-int:/show "setting compilation policy to neutral values")
37 (proclaim
38 '(optimize
39 (compilation-speed 1) (debug 1) (inhibit-warnings 1)
40 (safety 1) (space 1) (speed 1)))
42 ;;; Lock internal packages
43 #+sb-package-locks
44 (dolist (p (list-all-packages))
45 (unless (member p (mapcar #'find-package '("KEYWORD" "CL-USER")))
46 (sb-ext:lock-package p)))
48 (sb-int:/show "done with warm.lisp, about to SAVE-LISP-AND-DIE")
49 ;;; Even if /SHOW output was wanted during build, it's probably
50 ;;; not wanted by default after build is complete. (And if it's
51 ;;; wanted, it can easily be turned back on.)
52 #+sb-show (setf sb-int:*/show* nil)
53 ;;; The system is complete now, all standard functions are
54 ;;; defined.
55 (sb-kernel::ctype-of-cache-clear)
56 (setq sb-c::*flame-on-necessarily-undefined-function* t)
58 ;;; Clean up stray symbols from the CL-USER package.
59 (do-symbols (symbol "CL-USER")
60 (when (eq (symbol-package symbol) (find-package "CL-USER"))
61 (unintern symbol "CL-USER")))
63 (sb-ext:save-lisp-and-die "output/sbcl.core")