X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86%2Fbackend-parms.lisp;h=3f8cf62bd85dcc160c2ae318c8be770c7110fccf;hb=6dc30bee17d029acf6bb6da730f03e63b2a01948;hp=be2a8f4b1bc67150cbe4357c7460b1987a056cb8;hpb=aa2dc9529460ea0d9c99998dc87283fc1a43e808;p=sbcl.git diff --git a/src/compiler/x86/backend-parms.lisp b/src/compiler/x86/backend-parms.lisp index be2a8f4..3f8cf62 100644 --- a/src/compiler/x86/backend-parms.lisp +++ b/src/compiler/x86/backend-parms.lisp @@ -17,8 +17,7 @@ ;;;; compiler constants -(setf *backend-fasl-file-type* "x86f") -(defconstant +backend-fasl-file-implementation+ :x86) +(def!constant +backend-fasl-file-implementation+ :x86) (setf *backend-register-save-penalty* 3) @@ -28,7 +27,13 @@ ;;; code for it, but mostly we need it for GENESIS, which doesn't in ;;; general have our C runtime code running to ask, so instead we set ;;; it by hand. -- WHN 2001-04-15 -(setf *backend-page-size* 4096) +;;; +;;; Actually any information that we can retrieve C-side would be +;;; useless in SBCL, since it's possible for otherwise binary +;;; compatible systems to return different values for getpagesize(). +;;; -- JES, 2007-01-06 +(eval-when (:compile-toplevel :load-toplevel :execute) + (setf *backend-page-bytes* 4096)) ;;; comment from CMU CL: ;;; ;;; in case we ever wanted to do this for Windows NT.. @@ -38,4 +43,8 @@ ;;; page size is 512, but that doesn't do us a whole lot of good. ;;; Effectively, the page size is 64K. ;;; -;;; would be: (setf *backend-page-size* 65536) +;;; would be: (setf *backend-page-bytes* 65536) + +;;; The size in bytes of the GENCGC pages. Should be a multiple of the +;;; architecture code size. +(def!constant gencgc-page-bytes *backend-page-bytes*)