[top] [up] [next]

Starting the Virtual Machine


There are three ways in which the prolog virtual machine can be used:

  1. The installation program of Trinc-Prolog creates an association between files with the extension .tps and the location of the Trinc-Prolog Virtual Machine application. By double-clicking on a .tps file the prolog program is started because Windows knows the location of the Virtual Machine program.

  2. The second way to start a prolog program is to tell the Virtual Machine program which startup file to use, this can be done by the commandline parameter -settings:"<filename>". The <filename> parameter must contain a path to the startup file. For instance:
        tprovm32.exe -settings:"c:\test\prolog\start2.tps".
    A batch-, command file or a shortcut can be used to start the program with the commandline parameter.

  3. It is also possible to copy the Virtual Machine program to another folder and place only the prolog program in that folder. The files that must be copied are:
    tprovm32.exe
    system.txt
    tprocl.str
    tcads.str
    tcwin.str
    pl.str

    All these files are located in the program folder of Trinc-Prolog. Any standard modules located in the modules folder must also be copied, for instance: a TPWIN application always uses the modules object.txt and win.txt. These standard modules must be copied to a subfolder called modules of the folder where the Virtual Machine application is located.
    see also: Redistributable files

[top] [up] [next]

 

info@trinc-prolog.com