|Did you know ...||Search Documentation:|
|How do I make an executable?|
For local use you generally do not want to make an executable. Simply create a script as described in PrologScript is easier and starts only a little slower in most cases. Sometimes you do want to make a true executable. Some cases are:
A SWI-Prolog executable is a single file that consists of a native system executable with a saved-state attached to it. States are created using qsave_program/2 as described in the SWI-Prolog reference manual.
Unfortunately things start to get platform specific quickly. Here are some cases: