#| -*-Scheme-*-
-$Id: asstop.scm,v 1.17 2007/01/05 21:19:20 cph Exp $
+$Id: asstop.scm,v 1.18 2007/04/14 05:52:28 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define compiled-output-extension "com")
(define (compiler-file-output object pathname)
- (fasdump object pathname))
+ (fasdump object pathname #t))
(define (compiler-output->procedure scode environment)
(scode-eval scode environment))
;;; Various ways of dumping an info file
(define (compiler:dump-inf-file binf pathname)
- (fasdump binf pathname))
+ (compiler-file-output binf pathname))
(define (compiler:dump-bif/bsm-files binf pathname)
(let ((bif-path (pathname-new-type pathname "bif"))
(bsm-path (pathname-new-type pathname "bsm")))
(let ((bsm (split-inf-structure! binf bsm-path)))
- (fasdump binf bif-path)
- (fasdump bsm bsm-path))))
+ (compiler-file-output binf bif-path)
+ (compiler-file-output bsm bsm-path))))
(define (compiler:dump-bci/bcs-files binf pathname)
(let ((bci-path (pathname-new-type pathname "bci"))
(lambda ()
(call-with-temporary-filename
(lambda (temp)
- (fasdump object temp #t)
+ (compiler-file-output object temp)
(compress temp path))))))
(define compiler:dump-info-file
#| -*-Scheme-*-
-$Id: toplev.scm,v 4.71 2007/04/14 03:52:22 cph Exp $
+$Id: toplev.scm,v 4.72 2007/04/14 05:52:53 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (compiler-fasload pathname)
(let ((scode
- (let ((scode (fasload pathname)))
+ (let ((scode (fasload pathname #t)))
(if (scode/comment? scode)
(scode/comment-expression scode)
scode))))
#| -*-Scheme-*-
-$Id: toplev.scm,v 4.31 2007/01/05 21:19:29 cph Exp $
+$Id: toplev.scm,v 4.32 2007/04/14 05:53:17 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
,(decoded-time/second start-date)))
(sf/file->scode input-pathname bin-pathname
environment declarations))
- bin-pathname)))))
+ bin-pathname
+ #t)))))
(if sf:noisy?
(let ((message
(lambda (port)
(let ((pathname (merge-pathnames pathname sf/default-externs-pathname)))
(let ((namestring (->namestring pathname)))
(if (file-exists? pathname)
- (let ((object (fasload pathname))
+ (let ((object (fasload pathname #t))
(wrong-version
(lambda (version)
(warn (string-append
(else
(error "Not an externs file:" namestring))))
(begin
- (warn "Nonexistent externs file:" namestring)
+ (warn "Missing externs file:" namestring)
(values #f '()))))))
(define (write-externs-file pathname externs-block externs)
(cond ((not (null? externs))
(fasdump (vector externs-file-tag externs-file-version
externs-block externs)
- pathname))
+ pathname
+ #t))
((file-exists? pathname)
(delete-file pathname))))