English
Language : 

AN3350 Datasheet, PDF (22/185 Pages) STMicroelectronics – eTPU compiler tools
Using build tools
AN3350
linker. When using the compiler and linker separately, you must pass the common options to
both.
2.4
File name extensions
Files specified on the command line are identified by contents and file extension.
The command-line version of the eTPU build tools 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 .lcf. They may be simply added to the link line, for
example (Example 3).
Example 3 Example of using linker command files
mwldtarget file.o lib.a commandfile.lcf
For more information on linker command files, refer to the Targeting manual for your
platform.
22/185
Doc ID 018512 Rev 2