### /BASE Linker Option

Syntax: | Default:
/BAS[E]: [address] /NOBASE /BAS[E]:[address|@filename, key] | /BASE:0x10000

Use /BASE to specify the preferred load address for the first load segment of a run file. Only the last specified address will be used. If no address is specified, the default address will be used.

Using /NOBASE is equivalent to specifying /NOFIXED, but /NOFIXED is the preferred method.

Specifying @filename,key in place of address bases a set of programs (usually a set of DLLs) so they do not overlap in memory.

filename is the name of a text file that defines the memory map for a set of files. key is a reference to a line in filename beginning with the specified key. Each line in the memory-map file has the syntax:

key address maxsize

Separate the elements with one or more spaces or tabs.

- key is a unique name in the file.
- address is the location of the memory image in the virtual address space.
- maxsize is an amount of memory within which the image must fit.

The linker will issue a warning when the memory image of the program exceeds the specified size. A comment in the memory-map file begins with a semicolon (;) and runs to the end of the line.

Summary of Linker Options