Assembler Options

Following are assembler options that you can use with the compiler. For more information, see the ARM Assembly Language Tools User's Guide.

--absolute_listing Generates a listing with absolute addresses rather than section-relative offsets.
--asm_define=name[=def] Predefines the constant name for the assembler; produces a .set directive for a constant or an .arg directive for a string. If the optional [=def] is omitted, the name is set to 1. If you want to define a quoted string and keep the quotation marks, do one of the following:

  • For Windows, use --asm_define=name="\"string def\"". For example: --asm_define=car="\"sedan\""
  • For UNIX, use --asm_define=name='"string def"'. For example: --asm_define=car='"sedan"'
  • For Code Composer Studio, enter the definition in a file and include that file with the --cmd_file option.

--asm_dependency Performs preprocessing for assembly files, but instead of writing preprocessed output, writes a list of dependency lines suitable for input to a standard make utility. The list is written to a file with the same name as the source file but with a .ppa extension.
--asm_includes Performs preprocessing for assembly files, but instead of writing preprocessed output, writes a list of files included with the #include directive. The list is written to a file with the same name as the source file but with a .ppa extension.
--asm_listing Produces an assembly listing file.
--asm_undefine=name Undefines the predefined constant name. This option overrides any --asm_define options for the specified name.
--code_state={16|32} Generates 16-bit Thumb code. By default, 32-bit code is generated. When Cortex-R4, Cortex-M0, Cortex-M3, or Cortex-A8 architecture support is chosen, the --code_state option generates Thumb-2 code. For details on indirect calls in 16-bit versus 32-bit code, see Section 6.11.2.2.
--asm_listing_cross_reference Produces a symbolic cross-reference in the listing file.
--include_file=filename Includes the specified file for the assembly module; acts like an .include directive. The file is included before source file statements. The included file does not appear in the assembly listing files.