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 can be used to produce object code from 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 will then invoke the linker to create a static executable file from the object modules that were generated in the compile/assemble step.

Note

The link step can be disabled using the -c option on the tiarmclang command-line.