aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-08-16 06:10:45 +0000
committerdos-reis <gdr@axiomatics.org>2008-08-16 06:10:45 +0000
commitf98830d75127fccacf1be6b61f184a62633080cc (patch)
tree10f131b53bd5e2f325cbe3f681801195c03286c9 /src/boot
parent84db9d8c5349cb8b3e7e2d102867e53e610d7ef2 (diff)
downloadopen-axiom-f98830d75127fccacf1be6b61f184a62633080cc.tar.gz
* boot/strap: Update cached Lisp translation.
* lisp/core.lisp.in (linkset-from-if): Fix typo.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/strap/translator.clisp39
1 files changed, 18 insertions, 21 deletions
diff --git a/src/boot/strap/translator.clisp b/src/boot/strap/translator.clisp
index bb3e1a70..4d1f7fb2 100644
--- a/src/boot/strap/translator.clisp
+++ b/src/boot/strap/translator.clisp
@@ -82,6 +82,13 @@
(REALLYPRETTYPRINT |init| |stream|)))))
(#0# NIL)))))
+(DEFUN |genOptimizeOptions| (|stream|)
+ (DECLARE (SPECIAL |$LispOptimizeOptions|))
+ (REALLYPRETTYPRINT
+ (LIST 'PROCLAIM
+ (LIST 'QUOTE (CONS 'OPTIMIZE |$LispOptimizeOptions|)))
+ |stream|))
+
(DEFPARAMETER |$translatingOldBoot| NIL)
(DEFUN |AxiomCore|::|%sysInit| ()
@@ -134,6 +141,7 @@
(SETQ |$GenVarCounter| 0)
(|shoeOpenOutputFile| |stream| |outfn|
(PROGN
+ (|genOptimizeOptions| |stream|)
(LET ((|bfVar#5| |lines|) (|line| NIL))
(LOOP
(COND
@@ -173,6 +181,7 @@
(SETQ |$GenVarCounter| 0)
(|shoeOpenOutputFile| |stream| |outfn|
(PROGN
+ (|genOptimizeOptions| |stream|)
(LET ((|bfVar#6| |lines|) (|line| NIL))
(LOOP
(COND
@@ -1697,7 +1706,7 @@
(COND
(|out| (CONCAT (|shoeRemoveStringIfNec| |$effectiveFaslType|
|out|)
- ".clisp"))
+ "clisp"))
('T (|defaultBootToLispFile| |file|)))))))
(DEFUN |translateBootFile| (|progname| |options| |file|)
@@ -1735,35 +1744,23 @@
(|associateRequestWithFileType| (|Option| "compile") "boot"
#'|compileBootHandler|))
-(DEFUN |systemRootDirectory| ()
- (PROG (|dir|)
- (DECLARE (SPECIAL |$systemInstallationDirectory|))
- (RETURN
- (COND
- ((SETQ |dir| (ASSOC (|Option| "system") (|%systemOptions|)))
- (|ensureTrailingSlash| (CDR |dir|)))
- ('T |$systemInstallationDirectory|)))))
-
-(DEFUN |systemLibraryDirectory| ()
- (PROG (|dir|)
- (RETURN
- (COND
- ((SETQ |dir| (ASSOC (|Option| '|syslib|) (|%systemOptions|)))
- (|ensureTrailingSlash| (CDR |dir|)))
- ('T (CONCAT (|systemRootDirectory|) "lib/"))))))
-
(DEFUN |loadNativeModule| (|m|)
(COND
((|%hasFeature| :SBCL)
(FUNCALL (|bfColonColon| 'SB-ALIEN 'LOAD-SHARED-OBJECT) |m|))
((|%hasFeature| :CLISP)
(EVAL (LIST (|bfColonColon| 'FFI 'DEFAULT-FOREIGN-LIBRARY) |m|)))
+ ((|%hasFeature| :ECL)
+ (EVAL (LIST (|bfColonColon| 'FFI 'LOAD-FOREIGN-LIBRARY) |m|)))
('T
(|coreError| "don't know how to load a dynamically linked module"))))
(DEFUN |loadSystemRuntimeCore| ()
(DECLARE (SPECIAL |$NativeModuleExt|))
- (|loadNativeModule|
- (CONCAT (|systemLibraryDirectory|) "libopen-axiom-core"
- |$NativeModuleExt|)))
+ (COND
+ ((OR (|%hasFeature| :ECL) (|%hasFeature| :GCL)) NIL)
+ ('T
+ (|loadNativeModule|
+ (CONCAT (|systemLibraryDirectory|) "libopen-axiom-core"
+ |$NativeModuleExt|)))))