CodeWarrior Linker Command File (LCF)

Linker command files are an alternative way of specifying segment addresses.

Only one linker command file is supported per target in a project. The linker command filename must end in the .lcf extension.

The LCF along with other compiler directives, places pieces of code and data into ROM and RAM. You can do this by creating specific sections in the LCF and then matching them to the source code using pragma directives.

LCF consists of three kinds of segments, which must be in this order:

Related information
Predefined Sections
Additional Small Data Sections
Linker Map File
Deadstripping
Creating an LCF from Scratch
Relocating Code in ROM
Relocating Code and Data in Internal RAM
Relocating Code and Data in External MRAM
Unique LCF Examples
Linker Command File Commands