|Home > armclang Command-line Options > -x|
Specifies the language of source files.
Specifies the language of subsequent source files, one of the following:
-x overrides the default language
standard for the subsequent input files that follow it on the command-line. For
inputfile1.s -xc inputfile2.s inputfile3.s
In this example, armclang treats the input files as follows:
inputfile1.sappears before the
-xcoption, so armclang treats it as assembly code because of the
inputfile3.sappear after the
-xcoption, so armclang treats them as C code.
-stdto set the default language standard.
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