5.2. Integrated GNU-Syntax Arm Assembler¶
The tiarmclang compiler tools installation includes a GNU-syntax Arm assembler that is integrated into the tiarmclang compiler tool. The tiarmclang command can be used to assemble a source file containing GNU-syntax Arm assembly language.
5.2.1. Invoking the Integrated GNU-Syntax Arm Assembler¶
tiarmclang [options] <gnu asm file>.S [filenames]
tiarmclang [options] <gnu asm file>.s [filenames]
tiarmclang - Command to invoke the integrated GNU-syntax Arm assembler when presented with a GNU-syntax Arm assembly source input file.
options - Options that influence the behavior of the tiarmclang compiler and integrated assembler. These are described in the Compiler Options section.
<gnu asm file>.S - When presented with a GNU-syntax assembly source file with a .S file extension, tiarmclang will run the source file through the C preprocessor before presenting the output of the preprocessor to the GNU-syntax Arm assembler. Preprocessing directives in the assembly source file are useful for configuring assembly source content based on predefined macro symbols that are available to the C preprocessor.
<gnu asm file>.s - When presented with a GNU-syntax assembly source file with a .s file extension, tiarmclang will pass the assembly source file directly to the GNU-syntax Arm assembler for processing.
filenames - Other input files to be processed by the tiarmclang command.
Please refer to available online documentation for more information about the GNU-syntax Arm assembly language the majority of which is recognized and processed by tiarmclang’s integrated GNU-syntax Arm assembler. There are a few suggestions listed below:
You can also find information about how to migrate legacy TI-syntax Arm assembly language to GNU-syntax Arm assembly instructions and directives in the Migrating Assembly Language Source Code section of the migration_guide.