‑‑map
Syntax
‑‑map {filename|directory|-|+}
Parameters
| Sends the entire linker memory map to |
| Generates a map file in the same directory as the output file and with the same name as the output file, but with the filename extension |
See also Rules for specifying a filename or directory as parameters.
Description
Use this option to produce a linker memory map file. The map file has the default filename extension map. The map file contains:
Linking summary in the map file header which lists the version of the linker, the current date and time, and the command line that was used.
Runtime attribute summary which lists runtime attributes.
Placement summary which lists each section/block in address order, sorted by placement directives.
Initialization table layout which lists the data ranges, packing methods, and compression ratios.
Module summary which lists contributions from each module to the image, sorted by directory and library.
Entry list which lists all public and some local symbols in alphabetical order, indicating which module they came from.
Some of the bytes might be reported as shared.
Functions or data objects that can be shared between modules are reported as shared. If any of these occur in more than one module, only one copy is retained. For example, in some cases inline functions are not inlined, which means that they are marked as shared, because only one instance of each function will be included in the final application. This mechanism is also sometimes used for compiler-generated code or data not directly associated with a particular function or variable, and when only one instance is required in the final application.
This option can only be used once on the command line.
Caution
Project>Options>Linker>List>Generate linker map file