SPRU514Z July 2001 – October 2023 SM320F28335-EP
Following are assembler options that you can use with the compiler. For more information, see the TMS320C28x 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:
|
--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. |
--issue_remarks | Issues remarks (non-serious warnings). For the assembler, enables additional assembly-time checking. A remark is generated if an .ebss allocation size is greater than 64 words, or if a 16-bit immediate operand value resides outside of the -32 768 to 65 535 range. |
--asm_undefine=name | Undefines the predefined constant name. This option overrides any --asm_define options for the specified name. |
--asm_cross_reference_listing | Produces a symbolic cross-reference in the listing file. |
--flash_prefetch_warn | Enables assembler warnings if a program data access instruction follows within 8 words of a BF or SBF instruction. As outlined in the TMS320C281X/TMS320F281X DSP Silicon Errata (SPRZ193) advisory on the "Flash and OTP Prefetch Buffer Overflow", the flash prefetch buffer may overflow if this instruction sequence is executed from flash or One-Time-Programmable (OTP) memory with the flash prefetch buffer enabled. Whether or not an overflow actually occurs depends on the instruction sequence, flash wait states, and CPU pipeline stalls. If an overflow occurs, it will result in execution of invalid opcodes. Instructions that use program memory addressing include MAC/XMAC, DMAC/XMACD, QMACL, IMACL, PREAD/XPREAD, and PWRITE/XPWRITE. |
--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. |
--preproc_asm | Expands macros in an assembly file and assembles the expanded file. Expanding macros helps you to debug the assembly file. The --preproc_asm option affects only the assembly file. When --preproc_asm is used, the compiler first invokes the assembler to generate the macro-expanded source .exp file. Then the .exp file is assembled to generate the object file. The debugger uses the .exp file for debugging. The .exp file is an intermediate file and any update to this file will be lost. You need to make any updates to the original assembly file. |