Go to the first, previous, next, last section, table of contents.


Release notes and installation guide for OS/2

This chapter assumes that the environment variable PATH includes %SP_PATH%\bin, where SP_PATH points to the SICStus installation directory.

Installation

The file `sp3os2.zip' contains the binary distribution. To install:

% unzip sp3os2.zip

This creates the directory sicstus3. The development system provides command line editing; see section Command line editing. To install runtime system components:

% unzip sp3os2r.zip

SICStus Prolog requires a license code to run. This is installed by typing the commands below. You should have received from SICS values for Site, ExpirationDate and Code:

% splm -i Site
% splm -a sicstus3.7 ExpirationDate Code

Foreign language interface

Linked foreign resources come in two flavors, static and dynamic.

Static linked foreign resources are static libraries on OS/2 (.lib files). These are not portable between different C-compiler environments. Static linked foreign resources are used for building statically linked runtime and development systems.

Dynamic linked foreign resources are DLLs on OS/2. They are C-compiler independent but must use the syscall calling convention.

Linked foreign resources may be created using the command splfr as described in the manual. This command invokes C-compiler and linker through the scripts `spcc.cmd' and `spld.cmd'. These scripts are configured by default for the GCC/EMX compiler. The distribution also includes alternative scripts:

Runtime systems and customized development systems may be created using the commands spmkrs and spmkds respectively. These commands too use the scripts `spcc.cmd' and `spld.cmd'. Customized development systems require the static library `$SP_PATH\bin\sicstus.lib' while runtime systems require `$SP_PATH\..\sprt37.dll' at runtime.

Customized development systems also require `$SP_PATH\..\spds37.dll' at runtime. Import libraries for these DLLs are easily created for EMX:

% emximp -o rtimpemx.lib sprt37.dll
% emximp -o dsimpemx.lib spds37.dll

or for Watcom:

% wlib rtimpwat.lib +sprt.dll
% wlib dsimpwat.lib +spds37.dll

The names of these .libs are assumed in respective spld.

Emacs Interface

Using Emacs 19.30 for OS/2, interrupting by C-c C-c (or from menu) does not seem to work. Choosing EOF from menu seems to generate an eternal EOF which is not useful for e.g. escaping a break level. Instead a C-d can be generated by typing C-q C-d.

Limitations


Go to the first, previous, next, last section, table of contents.