0.6.12.21.flaky2:
[sbcl.git] / src / cold / shared.lisp
index 18e71e4..20401a4 100644 (file)
 ;;; needing collection and copying; when the application involved is
 ;;; the SBCL compiler, it doesn't take any longer to collect 20Mb than
 ;;; 2              -dan, 20000819
-
-#+sbcl
+;;;
+;;; Actually, tweaking *BYTES-CONSED-BETWEEN-GCS* to 20Mb instead of
+;;; the default 2 seemed to make SBCL rebuild O(25%) faster on my 256
+;;; Mb K6/3, so I think it does have some effect on X86/GENCGC. I
+;;; haven't looked into why this would be, though. Also, I'm afraid
+;;; that using 20Mb here might be unfriendly to people using more-reasonable
+;;; machines (like old laptops with 48Mb of memory..) so I've
+;;; suppressed this tweak except for Alpha. -- WHN 2001-05-11
+#+(and sbcl alpha) ; SBCL/Alpha uses stop-and-copy, and Alphas have lotso RAM.
 (progn
   (sb-ext:gc-off)
-  (setf sb-KERNEL::*bytes-consed-between-gcs* (* 20 (expt 10 6)))
+  (setf sb-kernel::*bytes-consed-between-gcs* (* 20 (expt 10 6)))
   (sb-ext:gc-on)
   (sb-ext:gc))
 
 (defpackage "SB-COLD" (:use "CL"))
 (in-package "SB-COLD")
 
-;;; prefix for source filename stems when cross-compiling
-(defvar *src-prefix* "src/")
-;;; (We don't bother to specify the source suffix here because ".lisp" is such
-;;; a good default value that we never have to specify it explicitly.)
-
 ;;; prefixes for filename stems when cross-compiling. These are quite arbitrary
 ;;; (although of course they shouldn't collide with anything we don't want to
 ;;; write over). In particular, they can be either relative path names (e.g.
   (load (in-host-compilation-mode
          (lambda ()
            (compile-stem stem
-                         :src-prefix *src-prefix*
                          :obj-prefix *host-obj-prefix*
                          :obj-suffix *host-obj-suffix*
                          :compile-file #'cl:compile-file
   (funcall *in-target-compilation-mode-fn*
           (lambda ()
             (compile-stem stem
-                          :src-prefix *src-prefix*
                           :obj-prefix *target-obj-prefix*
                           :obj-suffix *target-obj-suffix*
                           :ignore-failure-p ignore-failure-p