Ralf Hemmecke <[email protected]> writes:
> Can I have a bit more information on this one. Otherwise, nobody
> knows what could be put there.
>
> According to src/lisp/Makefile.in the parameter seems to be lisp
> code, but I would still have no idea what to write there. Some
> examples and the actual intention of this construction would be
> helpful (even if it is only for the very core developers).
>
> Thanks
> Ralf
>
> fricas_algebra_optimization=nil
> AC_ARG_WITH([algebra-optimization],
> [AS_HELP_STRING([--with-algebra-optimization=S],
> [use S as Lisp optimize declaration for
> compiling
> the algebra])],
> [fricas_algebra_optimization=$withval])
> AC_SUBST(fricas_algebra_optimization)
it's in the INSTALL file:
--with-algebra-optimization="((speed 3) (safety 0))"
chooses fastest (but unsafe) variant, while
--with-algebra-optimization="((speed 2) (safety 3))"
should be very safe (but possibly slow).
Note: this setting affects only algebra (that is mathematical
code). The rest of FriCAS always uses default setting.
Rationale for this is that mathematical code is unlikely to
contain errors which can crash the whole system.
----------------------------------------------------------------------
I decided not to invent yet another syntax for optimization settings,
since common lisp allows implementation specific optimization settings,
as far as I know. The string given by the user to configure is directly
used by the algebra compiler in nlib.lisp:
(define-function 'compile-lib-file
(if FRICAS-LISP::algebra-optimization
#'(lambda (f)
(locally (proclaim (cons 'optimize
FRICAS-LISP::algebra-optimization)))
(compile-file f))
#'compile-file))
Martin
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.