Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - due to the many code generation strategies possible in the 80x86 family of http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Due to the many code generation strategies possible in the 80x86 family of
processors, a number of versions of the libraries are provided.  You must
use the libraries which coincide with the particular architecture, operating
system, and code generation strategy or model that you have selected.  For
the type of code generation strategy or model that you intend to use, refer
to the description of the "m?" memory model compiler option.  The various
code models supported by Watcom C/C++ are described in the chapters entitled
16-bit Memory Models and 32-bit Memory Models.

We have selected a simple naming convention for the libraries that are
provided with Watcom C/C++.  Letters are affixed to the file name to
indicate the particular strategy with which the modules in the library have
been compiled.

16-bit only


S
    denotes a version of the Watcom C/C++ libraries which have been compiled
    for the "small" memory model (small code, small data).

M
    denotes a version of the Watcom C/C++ libraries which have been compiled
    for the "medium" memory model (big code, small data).

C
    denotes a version of the Watcom C/C++ libraries which have been compiled
    for the "compact" memory model (small code, big data).

L
    denotes a version of the Watcom C/C++ libraries which have been compiled
    for the "large" memory model (big code, big data).

H
    denotes a version of the Watcom C/C++ libraries which have been compiled
    for the "huge" memory model (big code, huge data).

MT
    denotes a version of the Watcom C/C++ libraries which may be used with
    OS/2 multi-threaded applications.

DL
    denotes a version of the Watcom C/C++ libraries which may be used when
    creating an OS/2 Dynamic Link Library.

32-bit only


3R
    denotes a version of the Watcom C/C++ libraries that will be used by
    programs which have been compiled for the "flat/small" memory models
    using the "3r", "4r" or "5r" option.

3S
    denotes a version of the Watcom C/C++ libraries that will be used by
    programs which have been compiled for the "flat/small" memory models
    using the "3s", "4s" or "5s" option.

The Watcom C/C++ 16-bit libraries are listed below by directory.

Under \WATCOM\LIB286\DOS

     CLIBS.LIB    (DOS small model support)
     CLIBM.LIB    (DOS medium model support)
     CLIBC.LIB    (DOS compact model support)
     CLIBL.LIB    (DOS large model support)
     CLIBH.LIB    (DOS huge model support)
     GRAPH.LIB    (model independent, DOS graphics support)

Under \WATCOM\LIB286\OS2

     CLIBS.LIB    (OS/2 small model support)
     CLIBM.LIB    (OS/2 medium model support)
     CLIBC.LIB    (OS/2 compact model support)
     CLIBL.LIB    (OS/2 large model support)
     CLIBH.LIB    (OS/2 huge model support)
     CLIBMTL.LIB  (OS/2 multi-thread, large model support)
     CLIBDLL.LIB  (OS/2 DLL, large model support)
     DOSPMS.LIB   (Phar Lap 286 PM small model support)
     DOSPMM.LIB   (Phar Lap 286 PM medium model support)
     DOSPMC.LIB   (Phar Lap 286 PM compact model support)
     DOSPML.LIB   (Phar Lap 286 PM large model support)
     DOSPMH.LIB   (Phar Lap 286 PM huge model support)

Under \WATCOM\LIB286\WIN

     CLIBS.LIB    (Windows small model support)
     CLIBM.LIB    (Windows medium model support)
     CLIBC.LIB    (Windows compact model support)
     CLIBL.LIB    (Windows large model support)
     WINDOWS.LIB  (Windows API library)

The Watcom C/C++ 32-bit libraries are listed below by directory.

Under \WATCOM\LIB386\DOS

     CLIB3R.LIB   (flat/small models, "3r", "4r" or "5r" option)
     CLIB3S.LIB   (flat/small models, "3s", "4s" or "5s" option)
     GRAPH.LIB    (flat/small models, DOS graphics support)

The graphics library GRAPH.LIB is independent of the argument passing
conventions.

Under \WATCOM\LIB386\OS2

     CLIB3R.LIB   (flat/small models, "3r", "4r" or "5r" option)
     CLIB3S.LIB   (flat/small models, "3s", "4s" or "5s" option)

Under \WATCOM\LIB386\WIN

     CLIB3R.LIB   (flat/small models, "3r", "4r" or "5r" option)
     CLIB3S.LIB   (flat/small models, "3s", "4s" or "5s" option)
     WIN386.LIB   (32-bit Windows API)

Under \WATCOM\LIB386\NT

     CLIB3R.LIB   (flat/small models, "3r", "4r" or "5r" option)
     CLIB3S.LIB   (flat/small models, "3s", "4s" or "5s" option)

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson