Mike, Perhaps you are already aware that the 'FOO.NRLIB' is not really a temporary thing. This is where the compiler puts it's object files prior to loading them. After compiling a spad file like this:
)co foo.spad which assuming the the file 'foo.spad' starts with )abbrev domain FOO Foo ... will create the directory 'FOO.NRLIB', it is also possible (usually in another session) to just load the file like this: )lib FOO and use it as you would any other code in the Axiom library. After the fricas-1.0.3.spkg installation the Axiom library is located here: $SAGE_ROOT/local/lib/fricas/target/x86_64-unknown-linux/algebra This is where all the algebra-related object files are located. Probably this is also a logical place to set as the default location when Sage starts FriCAS. That way, after compiling some spad code in Sage like this sage: axiom.compile(''' )abbrev package FOO Foo Foo():with bar: Integer->Integer == add bar(x) == x+1 ''') sage: exit Later you are assured that you can start Sage again and write: sage: print axiom.eval(')lib FOO') Foo will be automatically loaded when needed from /home/page/sage-3.1.2.alpha4-sage.math-only-x86_64-Linux/devel/sage-main/sage/interfaces/FOO.NRLIB/code sage: axiom.bar(1) 2 without having to re-compile the source for FOO again. The NRLIB would remain there indefinitely until replaced or deleted by the user. Regards, Bill Page. On Sat, Sep 13, 2008 at 5:15 PM, Bill Page <[EMAIL PROTECTED]> wrote: > On Sat, Sep 13, 2008 at 3:00 PM, Mike Hansen wrote: >> Bill Page wrote: >>> There were a couple of other changes that I suggested in emails >>> to Mike (including the compiler patch) but he has not yet included >>> them here yet. >> >> I have a patch for your changes, but we need to find a way so that >> with your example in compile, FriCAS does not make a >> "FOO.NRLIB" directory in the current directory. I can get a >> temporary directory from Sage, but I don't know how to tell FriCAS >> to use it. >> > > In FriCAS you can change the current directory with the commmand: > > )cd /tmp > > now > > )compile ... > > will create FOO.NRLIB in /tmp > > Regards, > Bill Page. > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---