The /LINE Option

Option

/LI[[NENUMBERS]]

The /LINE option adds the line numbers and associated addresses from source files to the map file. The object file must contain line-number information for it to appear in the map file. If the object file has no line-number information, the /LINE option has no effect. (Use the /Zd or /Zi option with Microsoft compilers such as CL, FL, and ML to add line numbers to the object file.) If you also want to add public symbols or other information to the map file, use the /MAP option. For more information on the map file, see the description of /MAP.

The /LINE option causes a map file to be created even if you did not explicitly tell the linker 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 /MAP option also forces creation of a map file.) For more information, see the description of mapfile on topic .

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 new map-file name in the mapfile field or in response to the List File prompt.