| |||||||||||||
On-Line Manuals RealView Compiler User's Guide | Invoking the ARM compiler
The command for invoking the ARM compiler is:
See Chapter 2 Compiler Command-line Options in the Compiler Reference Guide for more information on each of the following options:
The ARM compiler accepts one or more input files, for example: armcc ‑c [ Specifying a dash The compiler startup configuration is determined by the compiler according to the specified command‑line options and the filename extensions. Command‑line options override the default configuration determined by the filename extension. The compiler startup language can be C or C++ and the instruction set can be ARM or Thumb. You can also specify the startup instruction set by using the When you compile multiple files with a single command, all files must be of the same type, either C or C++. The compiler cannot switch the language based on the file extension. The following example produces an error, because the specified source files have different languages: armcc ‑c test1.c test2.cpp If you specify files with conflicting file extensions you can force the compiler to compile either for C or for C++, regardless of file extension. For example:
armcc ‑c ‑‑cpp test1.c test2.cpp
Where an unrecognized extension begins with Support for processing PreCompiled Header (PCH) files is not available when you specify multiple source files in a single compilation. If you request PCH processing and specify more than one primary source file, the compiler issues an error message, and aborts the compilation. See Precompiled header files for more information. | ||||||||||||
| |||||||||||||