Specifies the language of source files.
Specifies the language of subsequent source files, one of the following:
- C code.
- C++ code.
- Assembly code containing C directives that require the C preprocessor.
- Assembly code that does not require the C preprocessor.
Use the suffix
c++ to generate a Precompiled Header (PCH) file, that is
armclang creates the PCH file in the same directory as the header file, with the file suffix
This option can also be combined with the
-std command-line option to specify the language standard. For
armclang -xc -std=c99.
By default the compiler determines the source file language from the filename suffix, as follows:
.CCindicate C++, equivalent to
.cindicates C, equivalent to
.s(lower-case) indicates assembly code that does not require preprocessing, equivalent to
.S(upper-case) indicates assembly code that requires preprocessing, equivalent to