How to Invoke the CLA Compiler

The Control Law Accelerator (CLA) compiler is also invoked using the cl2000 command. Files that have a .cla extension are recognized by the compiler as CLA C files. The shell invokes separate CLA versions of the compiler passes to generate CLA-specific code. The --cla_support option is also required to assemble the output from the CLA code generator.

If you use the --cla_default option, files with an extension of .c are also compiled as CLA files.

Support is provided for Type 0, Type 1, and Type 2 CLA.

The object files generated by the compile can then be linked with other C28x objects files to create a combined C28x/CLA program.

To invoke the CLA compiler, enter:

cl2000 --cla_support=[cla0|cla1|cla2] [other options] file.cla
 CLA_compilation_overview_pru514.gifFigure 10-1 CLA Compilation Overview

Important facts about CLA C files: