Technical Support
On-Line Manuals
Compiler Reference Guide
Version 6.15
Specifies the language of source files.
-x language
language
Where:
Specifies the language of subsequent source files, one of the following:
c
c++
assembler-with-cpp
assembler
-x overrides the default language standard for the subsequent input files that follow it on the command-line. For example:
-x
armclang inputfile1.s -xc inputfile2.s inputfile3.s
In this example, armclang treats the input files as follows:
inputfile1.s
-xc
.s
inputfile2.s
inputfile3.s
-std
By default the compiler determines the source file language from the filename suffix, as follows:
.cpp
.cxx
.c++
.cc
.CC
-x c++
.c
-x c
-x assembler
.S
-x assembler-with-cpp
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.