X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcold%2Fwarm.lisp;h=6dbdb4c04b06717ab6e941c2639688b277b0f230;hb=322be917a6b06f5741b0da8a6621a4f1e881bf11;hp=751e4477b823cecf458dab98e558c5940ecac90d;hpb=39ca94ec421224c78cb01f7d2d7b49321c66a2d4;p=sbcl.git diff --git a/src/cold/warm.lisp b/src/cold/warm.lisp index 751e447..6dbdb4c 100644 --- a/src/cold/warm.lisp +++ b/src/cold/warm.lisp @@ -46,12 +46,16 @@ ;; (Hopefully this will go away as we move the files above into cold load.) ;; -- WHN 19991214 (let ((fullname (concatenate 'string stem ".lisp"))) - (sb!int:/show "about to compile" fullname) + ;; (Now that we use byte compiler for interpretation, /SHOW + ;; doesn't get compiled properly until the src/assembly files have + ;; been loaded, so we use PRINT instead.) + #+sb-show (print "/about to compile src/assembly file") + #+sb-show (print fullname) (multiple-value-bind (compiled-truename compilation-warnings-p compilation-failure-p) (compile-file fullname) (declare (ignore compilation-warnings-p)) - (sb!int:/show "done compiling" fullname) + #+sb-show (print "/done compiling src/assembly file") (if compilation-failure-p (error "COMPILE-FILE of ~S failed." fullname) (unless (load compiled-truename) @@ -142,14 +146,13 @@ ;;; ;;; FIXME: This has mutated into a hack which crudely duplicates ;;; functionality from the existing mechanism to load files from -;;; stems-and-flags.lisp-expr, without being quite parallel. (E.g. -;;; object files end up alongside the source files instead of ending -;;; up in parallel directory trees.) Maybe we could merge the -;;; filenames here into stems-and-flags.lisp-expr with some new flag -;;; (perhaps :WARM) to indicate that the files should be handled not -;;; in cold load but afterwards. Alternatively, we could call -(dolist (stem '( - ;; CLOS, derived from the PCL reference implementation +;;; build-order.lisp-expr, without being quite parallel. (E.g. object +;;; files end up alongside the source files instead of ending up in +;;; parallel directory trees.) Maybe we could merge the filenames here +;;; into build-order.lisp-expr with some new flag (perhaps :WARM) to +;;; indicate that the files should be handled not in cold load but +;;; afterwards. +(dolist (stem '(;; CLOS, derived from the PCL reference implementation ;; ;; This PCL build order is based on a particular ;; linearization of the declared build order @@ -205,8 +208,8 @@ ;; other functionality not needed for cold init, moved ;; to warm init to reduce peak memory requirement in ;; cold init - "src/code/describe" ; FIXME: should be byte compiled - "src/code/inspect" ; FIXME: should be byte compiled + "src/code/describe" + "src/code/inspect" "src/code/profile" "src/code/ntrace" "src/code/foreign" @@ -216,7 +219,7 @@ ;; facility is still used in our ANSI DESCRIBE ;; facility, and should be compiled and loaded after ;; our DESCRIBE facility is compiled and loaded. - "src/pcl/describe")) ; FIXME: should probably be byte compiled + "src/pcl/describe")) (let ((fullname (concatenate 'string stem ".lisp"))) (sb-int:/show "about to compile" fullname) @@ -266,10 +269,3 @@ (safety 1) (space 1) (speed 1))) - -;;; FIXME: It would be good to unintern stuff we will no longer need -;;; before we go on to PURIFY. E.g. -;;; * various PCL stuff like INITIAL-CLASSES-AND-WRAPPERS; and -;;; * *BUILT-IN-CLASSES* (which can't actually be freed by UNINTERN at -;;; this point, since it passed through another PURIFY earlier -;;; at cold init time).