Chapter 2:   WL32 LINKER

USING WL32

WL32 is used for creating DOS extended assembly language programs. It optionally can be used to link Watcom C object modules instead of WLINK, although full source debugging is not supported.

Operate the WL32 protected mode linker from the DOS command line or a batch or make file. There are no menus and operating modes. Simply type WL32 followed by specific command options and one or more filenames. Using WL32 is similar to using Borland's TLink or Microsoft Link, although you may optionally make WL32 work like RTLink, PLink and other linkers of that style. (See the Configuration Files chapter for more details on modifying WL32's behavior.)

Use the following format for running WL32 from the DOS prompt:

WL32 [command options] OBJECT_FILES, [program_file],[map_file],[library_files]

Items in brackets ([ ]) are optional. Do not actually type the brackets if you use the optional items. Replace command options with any of the WL32 options.

OBJECT_FILES indicates a list of one or more object module file names. WL32 uses a default extension of .OBJ for object module files if none is given. You can override the default extension by explicit use of a different extension in the file name.

program_file indicates the name of the executable file that WL32 creates as output. WL32 uses a default extension of .EXE for executable files if none is given. You can override the default extension by explicit use of a different extension in the file name. If no executable file name is listed, WL32 uses the first .OBJ file name with a .EXE extension as the executable file name.

map_file indicates the name of the map file WL32 creates that contains information about the executable file. WL32 uses a default extension of .MAP for s if none is given. You can override the default extension by explicit use of a different extension in the file name. If no map file name is listed and the /m option is specified, Wl32 uses the .EXE file name with a .MAP extension. If a map file name is not listed and the /m option is not used, a map file is not created.

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page