LINK Help (linker.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
/MAP Option
◄Up► ◄Contents► ◄Index► ◄Back►
─────LINK───────────────────────────────────────────────────────────────────
Syntax: /M[AP][:maptype]
The /MAP option controls the information put into the map file.
The /MAP option forces LINK to create a map file even if you did
not explicitly tell LINK to do so. LINK creates a map file when a
filename is specified in the <mapfile> field or when the default
map-file name is accepted. (The /LINE option also forces creation
of a map file.) By default, the map file is given the same base
name as the executable file with the extension .MAP. You can
override the default name by specifying a filename in the
<mapfile> field or in response to the List File prompt.
See: ◄<mapfile> Field►
A map file by default contains only a list of segments. A map file
created with /MAP contains public symbols sorted by name and by
address, in addition to the segments list. Symbols in C++ appear
in the form of decorated names. To add or omit information,
specify /MAP followed by a colon (:) and a <maptype> qualifier:
<maptype> Action
ADDRESS Omits the list of public symbols sorted by name
FULL Adds each object file's contribution to a segment;
adds undecorated names following the decorated names
for C++ symbols in listings by name and by address
To add line numbers to the map file, use the /LINE option.
See: ◄/LINE Option►
Under some circumstances, adding symbols slows the linking
process. If this is a problem, do not use /MAP.
-♦-