[Aldor-l] Compiling setup

Bill Page bill.page1 at synthesis.anikast.ca
Sat Aug 12 01:47:15 EDT 2006


On August 11, 2006 3:26 PM PCR wrote:
> 
> Bill Page wrote:
> > ...
> > It is also possible to get around this limitation by
> > compiling to intermediate lisp and then using a lisp
> > compiler such as GCL that works with the newer C compilers.
> >

> I am trying the detour. aldor -flsp -laldor sieve.as gave me a
> file sieve.lsp. Running gcl and typing (load "sieve.lsp") at the 
> promt gave me:
> 
>  >(load "sieve.lsp")
> 
> Loading sieve.lsp
> 
> Error: "FOAM" is not of type (OR SYMBOL STRING ...).
> Fast links are on: do (si::use-fast-links nil) for debugging
> Error signalled by IN-PACKAGE.
> Broken at IN-PACKAGE. Type :H for Help.
>  >>
> 
> This has to be my mistake somehow!
> 

I am sorry that I mislead you about how easy this was to do.
It turns out that although Aldor can compile to lisp, apparently
there is currently no stand alone runtime environment for lisp
like the C runtime library for Aldor. :( I was sure I actually
had an example of Aldor used with GCL this way at one time, but
I can't seem to find it now. )

There is however a lisp runtime for running Aldor inside Axiom.

See the example here:

http://wiki.axiom-developer.org/SandBoxAldorSieve

Note that the example has to be changed a little to be compatible
with the Axiom library.

It is also possible to use Aldor outside of Axiom as described
here:

http://www.aldor.org/docs/HTML/chap18.html#12

to compile Aldor to lisp code. Then you just need Axiom to compile
and run the lisp code:

  $ AXIOMsys
  (1) -> )compile sieve.lsp
  (1) -> sieve 2000

But in the current binary distribution of Axiom+Aldor to get
stand alone Aldor to compile for Axiom, you most copy the file
libaxiom.al from Axiom .../mnt/linux/algebra/libaxiom.al to
...aldor/linux/1.0.3/lib

And all of this will work on a linux system with an up to date
gcc compiler.

I hope this helps.

Regards,
Bill Page.





More information about the Aldor-l mailing list