# map

Tells the linker to generate a link map file.

## Syntax

Linux: | None

macOS: | None

Windows: | /map[:filename] /nomap

## Arguments

filename | Is the name for the link map file. It can be a file name or a directory name.

## Default

/nomap | No link map is generated.

## Description

This option tells the linker to generate a link map file.

## IDE Equivalent

Visual Studio: Linker > Debugging > Generate Map File (/MAP)

## Alternate Options

None

Parent topic: Linking or Linker Options