1 ;;load this file to dump maxima under excl
2 ;;Doing this twice will result in less compiler garbage in the image.
3 ;;thanks to rimey@ucbarpa.Berkeley.EDU (Ken Rimey)
4 ;;for many things in this file.
7 (setq si
:*source-file-types
* '("cl" "lsp" "lisp"))
8 (setq si
:*load-search-list
*
9 `(,(make-pathname :type
"fasl")
10 ,(make-pathname :type
"lisp")
11 excl
::*library-code-fasl-pathname
*))
12 (setq si
:*require-search-list
* si
:*load-search-list
*)
15 (proclaim '(optimize (speed 3) (safety 0)))
16 (make::make
:maxima
:compile t
)
20 (export 'macsyma-top-level
)
22 (defun macsyma-top-level ()
23 (let ((*package
* (find-package "MAXIMA")))
24 (loop (format t
"Top level.~%")
26 (and (excl:errorset
(continue) t
)
29 (defun top-level::eof-command
()
30 (throw 'macsyma-quit nil
))
36 (excl:dumplisp
:name
"maxima"
37 :restart-function
#'macsyma-top-level