aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-08-10 23:11:15 +0000
committerdos-reis <gdr@axiomatics.org>2008-08-10 23:11:15 +0000
commit51f27cd50780632ee9706e04b8a7b5e7d12c51cd (patch)
tree67a384dbc640fd9b91604bcadb657eb712c96bd1 /src
parentc9623290591d36710b6abea5f71962366d287335 (diff)
downloadopen-axiom-51f27cd50780632ee9706e04b8a7b5e7d12c51cd.tar.gz
* interp/Makefile.pamphlet: Clean up.
* interp/sys-driver.boot (SET-RESTART-HOOK): Remove.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/interp/Makefile.in34
-rw-r--r--src/interp/Makefile.pamphlet43
-rw-r--r--src/interp/sys-driver.boot6
4 files changed, 36 insertions, 52 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 20726305..afeedd65 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
2008-08-10 Gabriel Dos Reis <gdr@cs.tamu.edu>
+ * interp/Makefile.pamphlet: Clean up.
+ * interp/sys-driver.boot (SET-RESTART-HOOK): Remove.
+
+2008-08-10 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
* algebra/syntax.spad.pamphlet (AbstractSyntaxCategory): New.
(HeadAst): Likewise.
diff --git a/src/interp/Makefile.in b/src/interp/Makefile.in
index 6d561733..c070399b 100644
--- a/src/interp/Makefile.in
+++ b/src/interp/Makefile.in
@@ -17,10 +17,15 @@ BOOTSYS= $(axiom_target_bindir)/bootsys -- --syslib=$(axiom_target_libdir)
SAVESYS= interpsys$(EXEEXT)
AXIOMSYS= $(axiom_target_bindir)/AXIOMsys$(EXEEXT)
-OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
- vmlisp.$(FASLEXT) hash.$(FASLEXT) \
- diagnostics.$(FASLEXT) sys-driver.$(FASLEXT) \
- sys-utility.$(FASLEXT) macros.$(FASLEXT) \
+OBJS= boot-pkg.$(FASLEXT) types.$(FASLEXT) \
+ sys-driver.$(FASLEXT) sys-constants.$(FASLEXT) \
+ hash.$(FASLEXT) \
+ sys-globals.$(FASLEXT) vmlisp.$(FASLEXT) \
+ cfuns.$(FASLEXT) sys-os.$(FASLEXT) \
+ sys-utility.$(FASLEXT) diagnostics.$(FASLEXT) \
+ union.$(FASLEXT) sys-macros.$(FASLEXT) \
+ macros.$(FASLEXT) metalex.$(FASLEXT) \
+ parsing.$(FASLEXT) util.$(FASLEXT) \
unlisp.$(FASLEXT) \
astr.$(FASLEXT) bits.$(FASLEXT) \
ht-util.$(FASLEXT) bc-util.$(FASLEXT) \
@@ -29,7 +34,7 @@ OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
g-util.$(FASLEXT) \
simpbool.$(FASLEXT) g-timer.$(FASLEXT) \
cattable.$(FASLEXT) posit.$(FASLEXT) \
- cformat.$(FASLEXT) cfuns.$(FASLEXT) \
+ cformat.$(FASLEXT) \
clam.$(FASLEXT) \
clammed.$(FASLEXT) nlib.$(FASLEXT) \
comp.$(FASLEXT) foam_l.$(FASLEXT) \
@@ -83,9 +88,8 @@ OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
trace.$(FASLEXT) \
union.$(FASLEXT) daase.$(FASLEXT) \
fortcall.$(FASLEXT) \
- $(OPOBJS) \
$(OCOBJS) \
- $(BROBJS) i-parser.$(FASLEXT)
+ $(BROBJS) i-parser.$(FASLEXT) obey.$(FASLEXT)
interpsys_modules = $(patsubst %.$(FASLEXT), "%", $(OBJS))
INOBJS= setvart.$(FASLEXT)\
@@ -94,10 +98,6 @@ INOBJS= setvart.$(FASLEXT)\
IN_modules = $(patsubst %.$(FASLEXT), "%", $(INOBJS))
-# These are autloaded old parser files
-OPOBJS= parsing.$(FASLEXT) metalex.$(FASLEXT)
-
-autoload_objects += $(OPBJS)
OCOBJS= \
info.$(FASLEXT) modemap.$(FASLEXT) \
category.$(FASLEXT) define.$(FASLEXT) \
@@ -137,9 +137,9 @@ ASAUTO= ${AUTO}/ax.$(FASLEXT)
autoload_objects += $(ASAUTO)
TIMESTAMP=$(axiom_targetdir)/timestamp
-YEARWEEK=(progn (defconstant boot::timestamp "${TIMESTAMP}") \
- (setq boot::*build-version* "$(PACKAGE_STRING)") \
- (boot::yearweek))
+YEARWEEK=(progn (defconstant timestamp "${TIMESTAMP}") \
+ (setq *build-version* "$(PACKAGE_STRING)") \
+ (yearweek))
.PRECIOUS: ${SAVESYS}
@@ -187,9 +187,7 @@ clean-local: mostlyclean-local
distclean-local: clean-local
-makeint.lisp: ${OBJS} util.$(FASLEXT) \
- sys-driver.$(FASLEXT) \
- ${OUTINTERP} obey.$(FASLEXT) \
+makeint.lisp: $(OBJS) ${OUTINTERP} \
database.date ${INOBJS} ${ASCOMP} ${ASAUTO} \
${TRANOBJS} \
$(axiom_targetdir)/algebra/exposed.$(FASLEXT) \
@@ -222,11 +220,9 @@ makeint.lisp: ${OBJS} util.$(FASLEXT) \
@ touch ${TIMESTAMP}
@ echo '${YEARWEEK}' >> makeint.lisp
@ echo '(boot::build-interpsys (append (quote ($(interpsys_modules))) (quote ($(AS_modules))) (quote ($(IN_modules)))) (quote ($(patsubst %, "%", ${TRANOBJS}))) (quote ($(patsubst %, "%", ${ASAUTO}))))' >> makeint.lisp
- @ echo '(boot::set-restart-hook)' >> makeint.lisp
@ echo '(in-package "BOOT")' >> makeint.lisp
@ echo '(load "../algebra/warm.data")' >> makeint.lisp
@ echo '(boot::|clearClams|)' >> makeint.lisp
- @ echo '(load "obey")' >> makeint.lisp
@ echo '#+:akcl (setq compiler::*suppress-compiler-notes* t)' >> makeint.lisp
@ echo '#+:akcl (si::gbc-time 0)' >> makeint.lisp
@ echo '#+:GCL (gbc t)' >> makeint.lisp
diff --git a/src/interp/Makefile.pamphlet b/src/interp/Makefile.pamphlet
index a9ab12ce..fb1bf153 100644
--- a/src/interp/Makefile.pamphlet
+++ b/src/interp/Makefile.pamphlet
@@ -96,10 +96,15 @@ AXIOMSYS= $(axiom_target_bindir)/AXIOMsys$(EXEEXT)
\subsection{The Spad interpreter and compiler}
<<environment>>=
-OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
- vmlisp.$(FASLEXT) hash.$(FASLEXT) \
- diagnostics.$(FASLEXT) sys-driver.$(FASLEXT) \
- sys-utility.$(FASLEXT) macros.$(FASLEXT) \
+OBJS= boot-pkg.$(FASLEXT) types.$(FASLEXT) \
+ sys-driver.$(FASLEXT) sys-constants.$(FASLEXT) \
+ hash.$(FASLEXT) \
+ sys-globals.$(FASLEXT) vmlisp.$(FASLEXT) \
+ cfuns.$(FASLEXT) sys-os.$(FASLEXT) \
+ sys-utility.$(FASLEXT) diagnostics.$(FASLEXT) \
+ union.$(FASLEXT) sys-macros.$(FASLEXT) \
+ macros.$(FASLEXT) metalex.$(FASLEXT) \
+ parsing.$(FASLEXT) util.$(FASLEXT) \
unlisp.$(FASLEXT) \
astr.$(FASLEXT) bits.$(FASLEXT) \
ht-util.$(FASLEXT) bc-util.$(FASLEXT) \
@@ -108,7 +113,7 @@ OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
g-util.$(FASLEXT) \
simpbool.$(FASLEXT) g-timer.$(FASLEXT) \
cattable.$(FASLEXT) posit.$(FASLEXT) \
- cformat.$(FASLEXT) cfuns.$(FASLEXT) \
+ cformat.$(FASLEXT) \
clam.$(FASLEXT) \
clammed.$(FASLEXT) nlib.$(FASLEXT) \
comp.$(FASLEXT) foam_l.$(FASLEXT) \
@@ -162,9 +167,8 @@ OBJS= types.$(FASLEXT) sys-os.$(FASLEXT) \
trace.$(FASLEXT) \
union.$(FASLEXT) daase.$(FASLEXT) \
fortcall.$(FASLEXT) \
- $(OPOBJS) \
$(OCOBJS) \
- $(BROBJS) i-parser.$(FASLEXT)
+ $(BROBJS) i-parser.$(FASLEXT) obey.$(FASLEXT)
interpsys_modules = $(patsubst %.$(FASLEXT), "%", $(OBJS))
@
@@ -192,12 +196,8 @@ first time they are called. Loading the files overwrites
the autoload function call and re-calls the function.
Any subsequent calls will run the compiled code.
-The {\bf OPOBJS} list contains files from the old parser. The use of
-``old'' is something of a subtle concept as there were several
-generations of ``old'' and all meaning of the term is lost.
-
Notice that the object file [[def.$(FASLEXT)]] appears on both the
-[[OPBJS]] and [[TRANOBJS]] lists. In normal situation, parsing
+[[OBJS]] and [[TRANOBJS]] lists. In normal situation, parsing
precedes translation; consequently the file [[def]] is loaded by the
parser, so that it does not need to be reloaded by the translator.
However, it may theoretically be that a translation could happen without
@@ -206,13 +206,6 @@ Consequently, it must be ensured that [[def.]] is still loaded in that
configuration. In the long term, the autoload machinery need
rethinking.
-<<environment>>=
-# These are autloaded old parser files
-OPOBJS= parsing.$(FASLEXT) metalex.$(FASLEXT)
-
-autoload_objects += $(OPBJS)
-@
-
The {\bf OCOBJS} list contains files from the old compiler. Again,
``old'' is meaningless. These files should probably be autoloaded.
<<environment>>=
@@ -301,9 +294,9 @@ A new variable [[boot::*build-version*]] is set here and used by the
This information is set by hand in the top level Makefile.
<<environment>>=
TIMESTAMP=$(axiom_targetdir)/timestamp
-YEARWEEK=(progn (defconstant boot::timestamp "${TIMESTAMP}") \
- (setq boot::*build-version* "$(PACKAGE_STRING)") \
- (boot::yearweek))
+YEARWEEK=(progn (defconstant timestamp "${TIMESTAMP}") \
+ (setq *build-version* "$(PACKAGE_STRING)") \
+ (yearweek))
@
@@ -380,9 +373,7 @@ should not be set here just because we happen to save an GCL-based image.
Doing otherwise causes havoc.
<<savesys>>=
-makeint.lisp: ${OBJS} util.$(FASLEXT) \
- sys-driver.$(FASLEXT) \
- ${OUTINTERP} obey.$(FASLEXT) \
+makeint.lisp: $(OBJS) ${OUTINTERP} \
database.date ${INOBJS} ${ASCOMP} ${ASAUTO} \
${TRANOBJS} \
$(axiom_targetdir)/algebra/exposed.$(FASLEXT) \
@@ -415,11 +406,9 @@ makeint.lisp: ${OBJS} util.$(FASLEXT) \
@ touch ${TIMESTAMP}
@ echo '${YEARWEEK}' >> makeint.lisp
@ echo '(boot::build-interpsys (append (quote ($(interpsys_modules))) (quote ($(AS_modules))) (quote ($(IN_modules)))) (quote ($(patsubst %, "%", ${TRANOBJS}))) (quote ($(patsubst %, "%", ${ASAUTO}))))' >> makeint.lisp
- @ echo '(boot::set-restart-hook)' >> makeint.lisp
@ echo '(in-package "BOOT")' >> makeint.lisp
@ echo '(load "../algebra/warm.data")' >> makeint.lisp
@ echo '(boot::|clearClams|)' >> makeint.lisp
- @ echo '(load "obey")' >> makeint.lisp
@ echo '#+:akcl (setq compiler::*suppress-compiler-notes* t)' >> makeint.lisp
@ echo '#+:akcl (si::gbc-time 0)' >> makeint.lisp
@ echo '#+:GCL (gbc t)' >> makeint.lisp
diff --git a/src/interp/sys-driver.boot b/src/interp/sys-driver.boot
index d8bc74d5..25605895 100644
--- a/src/interp/sys-driver.boot
+++ b/src/interp/sys-driver.boot
@@ -170,12 +170,6 @@ SPAD_-SAVE(file) ==
)endif
-SET_-RESTART_-HOOK() ==
-)if %hasFeature KEYWORD::GCL
- SETQ(SYSTEM::_*TOP_-LEVEL_-HOOK_*,"restart")
-)endif
- "restart"
-
initializeGlobalState() ==
REROOT()
$IOindex := 1