File Name Extensions

Files specified on the command line are identified by contents and file extension, as in the CodeWarrior IDE.

The command-line version of the CodeWarrior C/C++ compiler accepts non-standard file extensions as source code but also emits a warning message. By default, the compiler assumes that a file with any extensions besides .c, .h, .pch is C++ source code. The linker ignores all files that it can not identify as object code, libraries, or command files.

Linker command files must end in .prm. They may be simply added to the link line, for example refer the following listing.

Listing: Example of using linker command files
mwldtarget file.o lib.a commandfile.prm
Note: For more information on linker command files, refer to the CodeWarrior Development Studio for Microcontrollers V10.x Targeting Manual for your platform.