5.15 Linking Programs

The compiler will automatically invoke the linker unless the compiler has been requested to stop earlier in the compilation sequence.

The linker will run with options that are obtained from the command-line driver. These options specify the memory of the device and how the sections should be placed in the memory. No linker scripts are used.

The linker options passed to the linker can be adjusted by the user, but this is only required in special circumstances (see 4.6.11.8 Wl: Pass Option To The Linker, Option for more information).

The linker creates a map file which details the memory assigned to sections and some objects within the code. The map file is the best place to look for memory information.