3.16. Assembler Options

Applications developed with the cl2000 compiler tools may include some source code written in assembly language.

Use of assembly language is discouraged for c29clang, except for assembly code embedded in C/C++ source files via asm() statements, which are processed inline by the c29clang integrated GNU-syntax assembler. For this reason, the TI C29x assembly language syntax is not documented.

When migrating a TI C28x application that contains assembly language source files to a TI C29x application, it is recommended that you convert assembly language code to C/C++ code.

cl2000 Option (and alias)

c29clang Option

--keep_asm (-k)

-S

The cl2000 compiler’s --keep_asm option causes the assembly language output from the compiler or the assembly optimizer to be kept.

The c29clang compiler allows you to keep the assembly language output from the compiler, but only if you use the -S option to stop the compiler after the assembly files are emitted, preventing the compiler from generating object files or invoking the linker.