1.1. About the CompilerΒΆ
The TI Arm Clang Compiler (tiarmclang) lets you compile, optimize, assemble, and link an application in one step. The compiler performs the following steps on one or more source modules:
The tiarmclang compiler compiles or assembles (as appropriate) one or more of the following types of input files:
C source files (with .c file extension)
C++ source files (with .C and/or .cpp file extensions)
GNU-Syntax Arm Assembly source files
By default, the integrated GNU-syntax assembler is used to process assembly source files with a .s file extension
By default, an assembly source file with a .S extension will be pre-processed by the compiler before being passed to the integrated GNU-syntax assembler.
TI-Syntax Arm Assembly source files (with .asm file extension)
Note
The -x option can be used on the tiarmclang command line to instruct the compiler how to interpret input files if the default file extension interpretation is not appropriate for your application. For more information about the -x option, see Using -x Option to Control Input File Interpretation.
By default, the tiarmclang compiler then invokes the linker to create a static executable file from the object modules that were generated in the compile/assemble step. (The linker is also available using the tiarmlnk command line.)
Note
The link step can be disabled using the -c option on the tiarmclang command line. See Stop Compiler After Object File Output (Omit Linking)