/Fm (Name Mapfile)

Tells the linker to produce a mapfile containing a list of segments in the order in which they appear in the corresponding .exe file or DLL.

Syntax

/Fmpathname

Remarks

By default, the mapfile is given the base name of the corresponding C or C++ source file with a .MAP extension.

Specifying /Fm has the same effect as if you had specified the /MAP (Generate Mapfile) linker option.

If you specify /c (Compile Without Linking) to suppress linking, /Fm has no effect.

Global symbols in a mapfile usually have one or more leading underscores because the compiler adds a leading underscore to variable names. Many global symbols that appear in the mapfile are used internally by the compiler and the standard libraries.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Click the C/C++ folder.

  3. Click the Command Line property page.

  4. Type the compiler option in the Additional Options box.

To set this compiler option programmatically

See also

Output-File (/F) Options
MSVC Compiler Options
MSVC Compiler Command-Line Syntax
Specifying the Pathname