Re: SWI Prolog Runtime configuration.
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 30 Aug 2006 08:56:27 GMT
On 2006-08-30, Sujai <sujai.antony@xxxxxxxxx> wrote:
Jan Wielemaker wrote:
I think, but its all very long ago as the runtime system existed first
of all from the days before SWI-Prolog was licenced under the LGPL, you
can only run saved states created using a compatible version of the
development system using `plrt -x state' or by combining them
using `cat plrt state > myprog && chmod +x myprog'
Possibly the problem is deeper. Debugging the system while it is loading
its init-file is very hard as most of the code that makes it print sensible
errors is either not yet loaded or appearently not functioning properly.
Cheers --- Jan
Thank you for the information Jan.
May I know if there is a plan to enhance the runtime option to
support all options as in the normal version (with just the debugging
and profiling removed)?
Its not on my prioritylist. Of course, if someone figures it out and
send me the patches I'm happy to include them in the main source.
Dropping the profiler is probably just fine as some OSes don't support
the required primitives and the profiler is dropped by configure.
Dropping the debugger might be harder as it has not been done for a
long time.
Together it makes the system 10-20% faster and a bit smaller. To
create smaller applications though, it is much more interesting to
enhance the save-state generation facilities with cross-reference
analysis and only save those parts of the code that need saving. Most
of the logic for that is in the library prolog_xref.pl, though it
needs completion and some thought on how careful it should be as well
as some declarations that allow the user to specify the entry
point(s).
One of the reasons not to bother too much with a stripped kernel is
that it is very convient to have one binary kernel for all purposes.
On modern OSes, the size of the executable file(s) doesn't matter that
much anymore.
--- Jan
I presume many would be interested in having a prolog kernel in.
their applications to make use of its inferencing aspects.
Having a runtime option with debugging and profiling options removed
will be ideal for such applications.
~Sujai.
- References:
- SWI Prolog Runtime configuration.
- From: Sujai
- Re: SWI Prolog Runtime configuration.
- From: Jan Wielemaker
- Re: SWI Prolog Runtime configuration.
- From: Sujai
- SWI Prolog Runtime configuration.
- Prev by Date: Re: SWI Prolog Runtime configuration.
- Next by Date: Re: to insert output in a specific folder
- Previous by thread: Re: SWI Prolog Runtime configuration.
- Index(es):
Relevant Pages
|