#| -*-Scheme-*-
-$Id: asstop.scm,v 1.6 1993/08/26 05:49:41 gjr Exp $
+$Id: asstop.scm,v 1.7 1993/11/09 04:13:55 gjr Exp $
Copyright (c) 1988-1993 Massachusetts Institute of Technology
\f
;;;; Exports to the compiler
+(define compiled-output-extension "com")
+
(define (compiler-file-output object pathname)
(fasdump object pathname))
#| -*-Scheme-*-
-$Id: toplev.scm,v 4.47 1992/10/24 16:00:50 jinx Exp $
+$Id: toplev.scm,v 4.48 1993/11/09 04:14:01 gjr Exp $
-Copyright (c) 1988-1992 Massachusetts Institute of Technology
+Copyright (c) 1988-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(let ((input-pathname (merge-pathnames input-string default)))
(let ((output-pathname
(let ((output-pathname
- (pathname-new-type input-pathname "com")))
+ (pathname-new-type input-pathname
+ compiled-output-extension)))
(if output-string
(merge-pathnames output-string output-pathname)
output-pathname))))
(write (enough-namestring input-pathname))
(write-string " => ")
(write (enough-namestring output-pathname))))
- (compiler-file-output (transform input-pathname output-pathname)
+ (compiler-file-output
+ (transform input-pathname output-pathname)
output-pathname)))))
(kernel
(if compiler:batch-mode?
#| -*-Scheme-*-
-$Id: ctop.scm,v 1.2 1993/10/30 12:58:09 gjr Exp $
+$Id: ctop.scm,v 1.3 1993/11/09 04:14:48 gjr Exp $
-Copyright (c) 1992 Massachusetts Institute of Technology
+Copyright (c) 1992-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
\f
;;;; Exports to the compiler
-(define c-code-tag (string->symbol "#[C-code]"))
+(define compiled-output-extension "c")
(define (compiler-file-output object pathname)
(let ((pair (vector-ref object 1)))
- (call-with-output-file (pathname-new-type pathname "c")
+ (call-with-output-file pathname
(lambda (port)
- (write-string (cdr pair) port)))
- (fasdump (cons c-code-tag (car pair))
- pathname)))
+ (write-string (cdr pair) port)))))
(define (compiled-scode->procedure compiled-scode environment)
environment ; ignored