[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gcl-devel] Re: Axiom-developer post from
From: |
Michael Koehne |
Subject: |
Re: [Gcl-devel] Re: Axiom-developer post from |
Date: |
Sun, 27 Jun 2004 16:03:27 +0200 |
User-agent: |
Mutt/1.3.28i |
Moin Magnus Larsson,
> I am not a Lisp user. I only use Lisp to bootstrap me to Axiom or Maxima.
> I would like to execute the test, but I need exact Lisp step-by-step
> instructions. foo.lisp contains (+ 2 3).
the idea was good, but the example was wrong ;(
try the same with a foo.lisp that contains
(defun pyth (a b) (sqrt (+ (* a a) (* b b))))
Next compile foo.lisp into foo.o, load it and produce a new lisp core :
GCL (GNU Common Lisp) 2.7.0 ANSI Jun 25 2004 23:35:41
[ ... ]
>(compile-file "foo.lisp")
[ ... ]
#P"foo.o"
>(load "foo.o")
[ ... ]
144
;;; you can also load a .lisp file here, e.g. (load "baz.lisp")
;;; but this .lisp file would be byte-code in core, and not
;;; compiled C code.
>(system:save-system "saved_foo_gcl")
after starting the new image, try to use it :
GCL (GNU Common Lisp) 2.7.0 ANSI Jun 25 2004 23:35:41
[ ... ]
>(pyth 4 3)
5.0
The alternate way to produce a (cleaner) lisp core is :
(compile-file "foo.lisp" :system-p t)
(compile-file "baz.lisp" :system-p t)
(compiler::link '("foo.o" "baz.o") "saved_foo_gcl" nil "-lextralibs")
The benefit of this way, is that I could exactly tell, what object are
going into the new core, and I could tell extra libraries, e.g. to
interface X11, OpenGL, MPI or other libraries.
Bye Michael
--
mailto:address@hidden UNA:+.? 'CED+2+:::Linux:2.4.22'UNZ+1'
http://www.xml-edifact.org/ CETERUM CENSEO WINDOWS ESSE DELENDAM
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approval, root, 2004/06/26
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approval, root, 2004/06/26
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approvalHello, Magnus Larsson, 2004/06/27
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approvalHello, root, 2004/06/27
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approvalHello, Magnus Larsson, 2004/06/27
- [Gcl-devel] Re: [Axiom-developer] Re: Axiom-developer post from address@hidden requires approvalHello, root, 2004/06/27
- [Gcl-devel] Re: [Axiom-developer] Re: Axiom-developer post from address@hidden requires approvalHello, Magnus Larsson, 2004/06/27
- [Gcl-devel] Re: [Axiom-developer] Re: Axiom-developer post from address@hidden requires approvalHello, root, 2004/06/27
- Re: [Gcl-devel] Re: [Axiom-developer] Re: Axiom-developer post from address@hidden requires approvalHello, Camm Maguire, 2004/06/28
- [Gcl-devel] Re: Axiom-developer post from address@hidden requires approvalHello, root, 2004/06/27