| Did you know ... | Search Documentation: |
| qsave.pl -- Save current program as a state or executable |
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 ...
qsave_program(+File) is det
qsave_program(+File, :Options) is det
make_header(+Out:stream, +SaveClass, +Options) is det[private]
save_options(+ArchiveHandle, +SaveClass, +Options)[private]The script files (-s script) are not saved at all. I think this is fine to avoid a save-script loading itself.
save_option_value(+SaveClass, +OptionName, +OptionValue, -FinalValue)[private]
save_init_goals(+Stream, +Options)[private]goal(Goal) option, use
that, else save the goals from '$cmd_option_val'/2.
mkrcname(+Module, +NameSpec, -Name)[private]
save_resource(+Zipper, +Name, +FileSpec, +Options) is det[private]
create_mapping(+Options) is det[private]
lock_files(+SaveClass) is det[private]runtime, lock all files such that when running the
program the system stops checking existence and modification time on
the filesystem.
save_program(+Zipper, +SaveClass, +Options) is det[private]
prepare_entry_points(+Options)[private]
prepare_state(+Options) is det[private]prepare_state registered
initialization hooks.
save_autoload(+Options) is det[private]
save_module(+Module, +SaveClass)[private]
save_imports[private]
restore_import(+TargetModule, +SourceModule, +PI) is det[private]user, avoiding a message that the predicate is not
exported.
restore_prolog_flag(+Name, +Value, +Type)[private]
save_operators(+Options) is det[private]system are
not saved because these are read-only anyway.
save_foreign_libraries(+Archive, +ExeFile, +Options) is det[private]
copy_foreign_libraries(+Exe, +Options) is det[private]
find_foreign_library(+Architecture, +FileSpec, -EntryName, -File, -Time) is det[private]strip -o <tmp>
<shared-object>. Note that (if stripped) the file is a Prolog tmp
file and will be deleted on halt.
strip_file(+File, -Stripped) is det[private]
qsave:arch_shlib(+Architecture, +FileSpec, -File) is det[multifile]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.
zipper_append_file(+Zipper, +Name, +File, +Options) is det[private]
zipper_add_directory(+Zipper, +Name, +Dir, +Options) is det[private]time(Stamp).
zipper_append_directory(+Zipper, +Name, +Dir, +Options) is det[private]
ignored(+File, +Options) is semidet[private]include(Patterns) option that does not
match File or an exclude(Patterns) that does match File.
qsave_toplevelThe following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
qsave_program(+File) is det
qsave_program(+File, :Options) is det