-x type
The -x option causes the compiler driver to treat subsequent files to be of the following file type
The following command line enables an assembly code file with the extension .arm to be assembled.
cc -xasm a.arm