How Code Composer Studio Projects Use the Compiler

If you use Code Composer Studio (CCS) as your development environment, the compiler and linker options are automatically set for you when you create a project. The project settings you make determine which compiler and linker command line options are used to build the project. Follow these steps to create and build a project in CCS v6.0. The exact steps may vary somewhat in other versions of CCS.

Table 2-1 Steps for Creating a CCS Project

Step Effects on Use of the Compiler
1. Choose File > New > CCS Project from the menus.
2. In the New CCS Project wizard, first select the Target. You can use the drop-down on the left to filter the list of specific targets on the right. The v8.x C6000 Code Generation Tools support C64x+, C6600, and C6740 targets. Sets the --silicon_version (-mv) compiler option. See Section 3.3.5. In addition, a preprocessor symbol matching the target is defined using the --define compiler option. See Section 3.3.2.
3. In the Connection field, select the emulator you will use to connect to the device. Generates a target configuration file for use when running the project.
4. In the Project name field, type a name for the project. Determines the folder where the project is stored.
5. Expand the Advanced settings area.
6. Make sure the Compiler version you want to use is selected. Sets the --include_path compiler option to the include directory for that version of the Code Generation Tools. See Section 3.5.2.1.
7. Make sure that the Output format is set to "eabi (ELF)". The v8.x C6000 Code Generation Tools no longer supports the COFF output file format. Sets the --abi compiler option. This option is no longer required since eabi is the only supported setting. See Section 3.15.
8. By default, C6000 applications are compiled to be little-endian. In the Device endianness field, you can choose big-endian if needed. Sets the --big_endian compiler option if the default is not used. See Section 3.3.4.
9. The linker command file and runtime support library are selected automatically based on your choices in the other fields.
10. Expand the Project templates and examples area.
11. Select a template for your project. The project templates you can choose from include a completely empty project with no source files, a project containing only main.c, an assembly-only project, and a Hello World example. Other examples that use plug-in software components you have installed are available in the TI Resource Explorer window.
12. Click Finish.

After you have created a CCS project, you can use the Properties dialog for the project to see how the compiler and linker will be used and modify the command-line options used when compiling and linking. To open this dialog, select the project in the Project Explorer and choose Project > Properties from the menus. Expand the category tree to select Build > C6000 Compiler and Build > C6000 Linker. You can learn more about any command-line options you see in this dialog in Section 3.