Assembler Options

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

--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.
--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.
--machine_regs Displays reg operands as machine registers in the assembly file for debugging purposes.
--no_compress Prevents compression in the assembler. Compression changes 32-bit instructions to 16-bit instructions, where possible/profitable.
--no_reload_errors Turns off all reload-related loop buffer error messages in assembly code.
--strip_coff_underscore Aids in transitioning hand-coded assembly from COFF to EABI. Although the COFF output is no longer supported, this option remains available as a COFF ABI to ELF EABI migration aid. For COFF ABI, the compiler prepended an underscore to the beginning of all C/C++ identifiers. For EABI, the link-time symbol is the same as the C/C++ identifier name. This option removes the underscore prefix from legacy symbol references as needed.