4. Assembling GNU-Syntax Arm Assembly Language Source

GNU-syntax Arm assembly language source files can be assembled using the tiarmclang compiler’s integrated assembler. When the compiler encounters a file name with an .s or .S extension on the command-line, it will interpret the contents of that file as GNU-syntax Arm assembly language source.

For example, in the following tiarmclang command:

%> tiarmclang -mcpu=cortex-m4 -c file1.c file2.s file3.S

“file1.c” is interpreted as a C source file and both “file2.s” and “file3.S” are interpreted as GNU-syntax Arm assembly language source files. The tiarmclang compiler will pre-process a GNU-syntax Arm assembly file with a “.S” extension. Whereas, it will not pre-process a GNU-syntax Arm assembly file with a “.s” extension.