4.3.3 Quick load files
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Loading Prolog source files
          • Quick load files
            • qcompile/1
            • qcompile/2
    • Packages
Availability:built-in
Sourceqcompile(:File, +Options)
As qcompile/1, but processes additional options as defined by load_files/2. Options are passed to load_files/2. In addition the following options are processed:
include(+Include)
What to include into the QLF file. Currently accepts only a single value: the atom user. When specified, files loaded indirectly from File that to not come from the Prolog library are included into the .qlf file. This may be used to generate a single file from an application. The result is comparable to a save state (see qsave_program/2) with the folowing differences:

  • Only your application code is included. The Prolog libraries and boot files are not.
  • Only Prolog code is included, .qlf files cannot include arbitrary resources.
  • The file can be loaded into a running Prolog process, while a saved state can only be loaded into a virgin Prolog virtual machine.