This library provides qsave_program/1 and qsave_program/2, which are also used by the commandline sequence below.
swipl -o exe -c file.pl ...
The script files (-s script) are not saved at all. I think this is fine to avoid a save-script loading itself.
goal(Goal)
option, use
that, else save the goals from '$cmd_option_val'/2.runtime
, lock all files such that when running the
program the system stops checking existence and modification time on
the filesystem.
prepare_state
registered
initialization hooks.user
, avoiding a message that the predicate is not
exported.system
are
not saved because these are read-only anyway.strip -o <tmp>
<shared-object>
. Note that (if stripped) the file is a Prolog tmp
file and will be deleted on halt.
foreign(Name)
, a specification
usable by absolute_file_name/2. The predicate should unify File with
the absolute path for the shared library that corresponds to the
specified Architecture.
If this predicate fails to find a file for the specified
architecture an existence_error
is thrown.
time(Stamp)
.include(Patterns)
option that does not
match File or an exclude(Patterns)
that does match File.The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.