save_program/[1,2]
save_program(
+File)
save_program(
+File,
+Goal)
Saves the state of the current execution in object format to File. A goal, Goal, to be called upon execution/restoring of the saved state, may be specified.
A file specification, `.sav' extension optional.
A goal, defaults to true
.
save_program/[1,2]
creates a binary representation of all
predicates in all modules existing in the system. However, it does
not save the user's pre-linked code. It also saves such states of the
system as operator definitions, Prolog flags, debugging and advice
state, initializations, and dependencies on foreign resources.
The resulting file can be restored using restore/1
.
instantiation_error
type_error
permission_error
restore/1
, ref-sls, ref-sls-sst.