Eliminate COMPILER:ENABLE-EXPANSION-DECLARATIONS? and the associated
authorChris Hanson <org/chris-hanson/cph>
Thu, 20 Dec 2001 03:04:02 +0000 (03:04 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 20 Dec 2001 03:04:02 +0000 (03:04 +0000)
early-expansion macros.  This hasn't been used in a while and there's
no clear way to make it work when environments and syntax tables are
unified.

23 files changed:
v7/src/compiler/base/switch.scm
v7/src/compiler/machines/C/compiler.pkg
v7/src/compiler/machines/C/decls.scm
v7/src/compiler/machines/alpha/compiler.pkg
v7/src/compiler/machines/alpha/compiler.sf
v7/src/compiler/machines/alpha/decls.scm
v7/src/compiler/machines/bobcat/compiler.pkg
v7/src/compiler/machines/bobcat/compiler.sf
v7/src/compiler/machines/bobcat/decls.scm
v7/src/compiler/machines/i386/compiler.pkg
v7/src/compiler/machines/i386/compiler.sf
v7/src/compiler/machines/i386/decls.scm
v7/src/compiler/machines/mips/compiler.pkg
v7/src/compiler/machines/mips/compiler.sf-big
v7/src/compiler/machines/mips/compiler.sf-little
v7/src/compiler/machines/mips/decls.scm
v7/src/compiler/machines/sparc/decls.scm
v7/src/compiler/machines/spectrum/compiler.pkg
v7/src/compiler/machines/spectrum/compiler.sf
v7/src/compiler/machines/spectrum/decls.scm
v7/src/compiler/machines/vax/compiler.pkg
v7/src/compiler/machines/vax/compiler.sf
v7/src/compiler/machines/vax/decls.scm

index 83230220a6908e5011aedf553536d776d89633a7..51036dbc3f649abfb99908b34461fd6fa9b4aaca 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: switch.scm,v 4.25 1999/01/02 06:06:43 cph Exp $
+$Id: switch.scm,v 4.26 2001/12/20 03:04:02 cph Exp $
 
-Copyright (c) 1988-1999 Massachusetts Institute of Technology
+Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -16,52 +16,52 @@ General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
 |#
 
 ;;;; Compiler Option Switches
 ;;; package: (compiler)
 
 (declare (usual-integrations))
-\f
+
 ;;; Binary switches
 
-(define compiler:enable-integration-declarations? true)
-(define compiler:enable-expansion-declarations? false)
-(define compiler:compile-by-procedures? true)
-(define compiler:noisy? true)
-(define compiler:show-time-reports? false)
-(define compiler:show-procedures? true)
-(define compiler:show-phases? false)
-(define compiler:show-subphases? false)
-(define compiler:preserve-data-structures? false)
-(define compiler:code-compression? true)
-(define compiler:cache-free-variables? true)
-(define compiler:implicit-self-static? true)
-(define compiler:optimize-environments? true)
-(define compiler:analyze-side-effects? true)
-(define compiler:cse? true)
-(define compiler:open-code-primitives? true)
-(define compiler:generate-rtl-files? false)
-(define compiler:generate-lap-files? false)
-(define compiler:intersperse-rtl-in-lap? true)
-(define compiler:generate-range-checks? false)
-(define compiler:generate-type-checks? false)
-(define compiler:generate-stack-checks? true)
-(define compiler:open-code-flonum-checks? false)
-(define compiler:use-multiclosures? true)
-(define compiler:coalescing-constant-warnings? true)
-(define compiler:cross-compiling? false)
+(define compiler:enable-integration-declarations? #t)
+(define compiler:compile-by-procedures? #t)
+(define compiler:noisy? #t)
+(define compiler:show-time-reports? #f)
+(define compiler:show-procedures? #t)
+(define compiler:show-phases? #f)
+(define compiler:show-subphases? #f)
+(define compiler:preserve-data-structures? #f)
+(define compiler:code-compression? #t)
+(define compiler:cache-free-variables? #t)
+(define compiler:implicit-self-static? #t)
+(define compiler:optimize-environments? #t)
+(define compiler:analyze-side-effects? #t)
+(define compiler:cse? #t)
+(define compiler:open-code-primitives? #t)
+(define compiler:generate-rtl-files? #f)
+(define compiler:generate-lap-files? #f)
+(define compiler:intersperse-rtl-in-lap? #t)
+(define compiler:generate-range-checks? #f)
+(define compiler:generate-type-checks? #f)
+(define compiler:generate-stack-checks? #t)
+(define compiler:open-code-flonum-checks? #f)
+(define compiler:use-multiclosures? #t)
+(define compiler:coalescing-constant-warnings? #t)
+(define compiler:cross-compiling? #f)
 ;; This only works in the C back end, right now
-(define compiler:compress-top-level? false)
-(define compiler:avoid-scode? true)
+(define compiler:compress-top-level? #f)
+(define compiler:avoid-scode? #t)
 
 ;; If true, the compiler is allowed to assume that fixnum operations
 ;; are only applied to inputs for which the operation is closed, i.e.
 ;; generates a valid fixnum.  If false, the compiler will ensure that
 ;; the result of a fixnum operation is a fixnum, although it may be an
 ;; incorrect result for screw cases.
-(define compiler:assume-safe-fixnums? true)
+(define compiler:assume-safe-fixnums? #t)
 
 ;; The switch COMPILER:OPEN-CODE-FLOATING-POINT-ARITHMETIC? is in machin.scm.
 
@@ -77,5 +77,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 ;;; Hook: bind this to a procedure of one argument and it will receive
 ;;; each phase of the compiler as a thunk.  It is expected to call the
 ;;; thunk after any appropriate processing.
-(define compiler:phase-wrapper
-  false)
\ No newline at end of file
+(define compiler:phase-wrapper #f)
\ No newline at end of file
index 4efda9e16f70fc014c2efbe496596fbb9871514f..c01faf13dc16ef185446c7b78cd9aae98a3d5c9d 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.11 2001/12/19 21:39:29 cph Exp $
+$Id: compiler.pkg,v 1.12 2001/12/20 03:04:02 cph Exp $
 
-Copyright (c) 1992-1999 Massachusetts Institute of Technology
+Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -16,7 +16,8 @@ General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
 |#
 
 ;;;; Compiler Packaging
@@ -70,7 +71,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
index 199936b1bcfb6e02a724399c85abbf187da5dae8..736b97ca40a30b9d3e5c3cb2ffa00b6492796ee3 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.5 2001/12/19 21:39:29 cph Exp $
+$Id: decls.scm,v 1.6 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -555,44 +549,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/C"
-                     "lapgen"
-                     "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo" "cout"
-                     )
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index e8b3f3eaba52220368e201c04e3a658f2d48fcc6..d48aea70ab48ccdd20946243cc5f3dbee811e9f4 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.14 2001/12/19 21:39:29 cph Exp $
+$Id: compiler.pkg,v 1.15 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -564,7 +563,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/alpha/coerce"        ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/alpha/insmac"        ;Macros for hairy syntax
-        "machines/alpha/inerly"        ;Early binding version
         "machines/alpha/instr1"        ;Alpha instruction set
         "machines/alpha/instr2"        ;branch tensioning: branches
         "machines/alpha/instr3"        ;floating point
index 52a5a3e94362f121c9614e48f794ef8ff9f04013..1c73b577bcd9152af15da17c68ab64f467af035e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf,v 1.9 2001/12/19 21:39:29 cph Exp $
+$Id: compiler.sf,v 1.10 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
@@ -70,23 +70,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/alpha/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/alpha/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("instr1" "instr2" "instr3")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index a33329a46599ff1ac48730d445a7295f5c5973cb..5f7fed9a02f5e27e3c8ef4bdfcb5fe78df12b06a 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.7 2001/12/19 21:39:29 cph Exp $
+$Id: decls.scm,v 1.8 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -574,44 +568,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/alpha"
-                     "lapgen"
-                     "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo"
-                     )
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index 26e7a192c9f148a60c7b692c73aa1bdf58ba0a5f..9f3fb6a1a5f6a05ed1049d8daa2ef9fd3f8e5979 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.51 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.pkg,v 1.52 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -568,7 +567,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/bobcat/coerce"       ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/bobcat/insmac"       ;Macros for hairy syntax
-        "machines/bobcat/inerly"       ;Early binding version
         "machines/bobcat/insutl"       ;Utilities for instructions
         "machines/bobcat/instr1"       ;68000 Effective addressing
         "machines/bobcat/instr2"       ;68000 Instructions
index 819e186009017be5295490d3e5a8696fbb8e5a78..e931bd92e0d92d98faca9b9ab88c0ef104b3e1d2 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf,v 1.21 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf,v 1.22 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -68,24 +68,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/bobcat/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/bobcat/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("instr1" "instr2" "instr3" "instr4"
-                            "flinstr1" "flinstr2")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index a6e936bc807c8a8e4569ae7c3dc352f2eec6d1b0..03010fa8471269dcda2d6f18b4ccdadee64d9824 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 4.38 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 4.39 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -573,41 +567,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/bobcat"
-                     "lapgen" "rules1" "rules2" "rules3" "rules4")
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index bd7bcab2bca416787628b9ab054ef4ad8e4195a9..23d9579d09730198641e79606711068af127040f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.25 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.pkg,v 1.26 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -573,7 +572,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/i386/coerce"         ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/i386/insmac"         ;Macros for hairy syntax
-        "machines/i386/inerly"         ;Early binding version
         "machines/i386/insutl"         ;i386 instruction utilities
         "machines/i386/instr1"         ;i386 instructions
         "machines/i386/instr2"         ;  "        "
index 8908f92e32fc5331a708574afd4f408256b32c86..2f67e6c1828505795a397c13ed92c7da5324f1c2 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf,v 1.15 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf,v 1.16 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1992-2001 Massachusetts Institute of Technology
 
@@ -68,23 +68,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/i386/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/i386/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("insutl" "instr1" "instr2" "instrf")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index 19b4e94a6f5fd577fe395e2e71d2cd474e361e57..454899f800dfa4d30cb6965db7d0e65f8b29545a 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.10 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 1.11 2001/12/20 03:04:02 cph Exp $
 
-Copyright (c) 1992-2000 Massachusetts Institute of Technology
+Copyright (c) 1992-2001 Massachusetts Institute of Technology
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -16,7 +16,8 @@ General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
 |#
 
 ;;;; Compiler File Dependencies
@@ -65,7 +66,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -309,12 +309,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -591,42 +586,4 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/i386"
-                     "lapgen" "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo")
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index 50dde456c0ace9a0a5ba5a717dc654771254971d..93760101c53b414800f5ccda2cb73ab8179c2346 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.21 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.pkg,v 1.22 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -570,7 +569,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/mips/coerce" ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/mips/insmac" ;Macros for hairy syntax
-        "machines/mips/inerly" ;Early binding version
         "machines/mips/instr1" ;MIPS instruction set
         "machines/mips/instr2a"; branch tensioning: branches
         "machines/mips/instr2b"; branch tensioning: load/store
index 7375b4c7dc1311318ebaf4b908eccf92ae45b9b1..6ca5a505e2f43be9fcac6ad05432c12a45f6eb99 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf-big,v 1.11 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf-big,v 1.12 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -70,23 +70,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/mips/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/mips/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("instr1" "instr2a" "instr2b" "instr3")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index d776ce8f5ae8644c75c7db669a038413c1d52e36..d3ae1007735012b6ac775b4e91165534c4f29ef3 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf-little,v 1.11 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf-little,v 1.12 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -70,23 +70,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/mips/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/mips/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("instr1" "instr2a" "instr2b" "instr3")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index 076d488394f1c3d96705eb7203f1ce0eaa7c99fb..e897a81ebcb68ee726d1efc2df605d5b7ac0623f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.11 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 1.12 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -574,44 +568,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/mips"
-                     "lapgen"
-                     "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo"
-                     )
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index 054fe2f69e55fbad18d08c1a076cf30e08616c23..fe96b3e03a8d55f9475ba304e1876a21227b6d75 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 1.5 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 1.6 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -63,7 +63,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -289,12 +288,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -563,42 +557,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/sparc"
-                     "lapgen" "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo")
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index 22875dcce8b731073bbc351ad5bbcfbffed262b8..867f633460ccd6a724482c63cadf559f97b4061f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.51 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.pkg,v 1.52 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -574,7 +573,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/spectrum/coerce"     ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/spectrum/insmac"     ;Macros for hairy syntax
-        "machines/spectrum/inerly"     ;Early binding version
         "machines/spectrum/instr1"     ;Spectrum instruction utilities
         "machines/spectrum/instr2"     ;Spectrum instructions
         "machines/spectrum/instr3"     ;  "        "
index abe79096cf60edc6a54cdc0645d78205ba96b881..a143c074c42f337c370cda935144db1acb67a98b 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf,v 1.21 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf,v 1.22 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -68,23 +68,7 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/spectrum/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))))
-
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/spectrum/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("instr1" "instr2" "instr3")))))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))))
 
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
index 501935e2a85cae78e851a380280e022778613e37..ca6a5544e7f1756f84d31b74753186c86811f470 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 4.36 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 4.37 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -572,42 +566,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/spectrum"
-                     "lapgen" "rules1" "rules2" "rules3" "rules4"
-                     "rulfix" "rulflo")
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           (EA-KEYWORD-EARLY EA-KEYWORD-EXPANDER)
-           (EA-MODE-EARLY EA-MODE-EXPANDER)
-           (EA-REGISTER-EARLY EA-REGISTER-EXPANDER)
-           (EA-EXTENSION-EARLY EA-EXTENSION-EXPANDER)
-           (EA-CATEGORIES-EARLY EA-CATEGORIES-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file
index 40c7ed7723e22728c0ade4e7114306bbda93a9d0..4c8a32069a0571636054b4c30f415eebd598b3cd 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.pkg,v 1.23 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.pkg,v 1.24 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -71,7 +71,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
          compiler:compile-by-procedures?
          compiler:cse?
          compiler:default-top-level-declarations
-         compiler:enable-expansion-declarations?
          compiler:enable-integration-declarations?
          compiler:generate-lap-files?
          compiler:generate-range-checks?
@@ -563,7 +562,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
         "machines/vax/coerce"          ;Coercions: integer -> bit string
         "back/asmmac"                  ;Macros for hairy syntax
         "machines/vax/insmac"          ;Macros for hairy syntax
-        "machines/vax/inerly"          ;Early binding version
         "machines/vax/insutl"          ;Utilities for instructions
         "machines/vax/instr1"          ;Vax Instructions
         "machines/vax/instr2"          ;  "        "
index 9d8c9e2f2ac051e2750c05067df91c574ed3b112..1f7bf37670b594727c07dae90c26f553da7a020b 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: compiler.sf,v 1.12 2001/12/19 21:39:30 cph Exp $
+$Id: compiler.sf,v 1.13 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
 
@@ -68,28 +68,11 @@ USA.
                   '(COMPILER LAP-SYNTAXER))
       (sf-and-load '("base/scode") '(COMPILER))
       (sf-and-load '("base/pmerly") '(COMPILER PATTERN-MATCHER/EARLY))
-      (sf-and-load '("machines/vax/inerly" "back/syerly")
-                  '(COMPILER LAP-SYNTAXER))
-      (sf-and-load '("machines/vax/dsyn")
-                  '(COMPILER DISASSEMBLER MACROS))
+      (sf-and-load '("back/syerly") '(COMPILER LAP-SYNTAXER))
+      (sf-and-load '("machines/vax/dsyn") '(COMPILER DISASSEMBLER MACROS))
       ((access initialize-package!
               (->environment '(COMPILER DISASSEMBLER MACROS))))))
 
-;; Load the assembler instruction database.
-(in-package (->environment '(COMPILER LAP-SYNTAXER))
-  (if (and compiler:enable-expansion-declarations?
-          (null? early-instructions))
-      (fluid-let ((load-noisily? #f)
-                 (load/suppress-loading-message? #f))
-       (fresh-line)
-       (newline)
-       (write-string "---- Pre-loading instruction sets ----")
-       (newline)
-       (for-each (lambda (name)
-                   (load (string-append "machines/vax/" name ".scm")
-                         '(COMPILER LAP-SYNTAXER)))
-                 '("insutl" "instr1" "instr2" "instr3")))))
-
 ;; Resyntax any files that need it.
 ((access syntax-files! (->environment '(COMPILER))))
 
index 5e4c0722ff5a008f7b64b8cb48ef29d3d83bbd7c..22c7d58f291725550d1c7a6ab6aadc09c6c03fbb 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: decls.scm,v 4.14 2001/12/19 21:39:30 cph Exp $
+$Id: decls.scm,v 4.15 2001/12/20 03:04:02 cph Exp $
 
 Copyright (c) 1987-1999, 2001 Massachusetts Institute of Technology
 
@@ -66,7 +66,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
             source-filenames))
   (initialize/syntax-dependencies!)
   (initialize/integration-dependencies!)
-  (initialize/expansion-dependencies!)
   (source-nodes/rank!))
 
 (define source-file-expression "*.scm")
@@ -293,12 +292,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
            (lambda (declarations)
              (list-transform-negative declarations
                integration-declaration?)))
-       ((if compiler:enable-expansion-declarations?
-            identity-procedure
-            (lambda (declarations)
-              (list-transform-negative declarations
-                expansion-declaration?)))
-        (source-node/declarations node)))))))
+       (source-node/declarations node))))))
 
 (define-integrable (modification-time node type)
   (file-modification-time
@@ -575,38 +569,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
           integration-dependencies)))
 
 (define-integrable (integration-declaration? declaration)
-  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
-\f
-;;;; Expansion Dependencies
-
-(define (initialize/expansion-dependencies!)
-  (let ((file-dependency/expansion/join
-        (lambda (filenames expansions)
-          (for-each (lambda (filename)
-                      (let ((node (filename->source-node filename)))
-                        (set-source-node/declarations!
-                         node
-                         (cons (make-expansion-declaration expansions)
-                               (source-node/declarations node)))))
-                    filenames))))
-    (file-dependency/expansion/join
-     (filename/append "machines/vax"
-                     "lapgen" "rules1" "rules2" "rules3" "rules4" "rulfix")
-     (map (lambda (entry)
-           `(,(car entry)
-             (PACKAGE/REFERENCE (FIND-PACKAGE '(COMPILER LAP-SYNTAXER))
-                                ',(cadr entry))))
-         '((LAP:SYNTAX-INSTRUCTION LAP:SYNTAX-INSTRUCTION-EXPANDER)
-           (INSTRUCTION->INSTRUCTION-SEQUENCE
-            INSTRUCTION->INSTRUCTION-SEQUENCE-EXPANDER)
-           (SYNTAX-EVALUATION SYNTAX-EVALUATION-EXPANDER)
-           (CONS-SYNTAX CONS-SYNTAX-EXPANDER)
-           (OPTIMIZE-GROUP-EARLY OPTIMIZE-GROUP-EXPANDER)
-           ;; (COERCE-TO-TYPE-EARLY COERCE-TO-TYPE-EXPANDER) ; not used now
-           (EA-VALUE-EARLY EA-VALUE-EXPANDER))))))
-
-(define-integrable (make-expansion-declaration expansions)
-  `(EXPAND-OPERATOR ,@expansions))
-
-(define-integrable (expansion-declaration? declaration)
-  (eq? (car declaration) 'EXPAND-OPERATOR))
\ No newline at end of file
+  (eq? (car declaration) 'INTEGRATE-EXTERNAL))
\ No newline at end of file