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. 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 method 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. By default, C7000 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.
8. The linker command file and runtime support library are selected automatically based on your choices in the other fields.
9. Expand the Project templates and examples area.
10. 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, and a Hello World example. Other examples that use plug-in software components you have installed are available in the TI Resource Explorer window.
11. 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 > C7000 Compiler and Build > C7000 Linker. You can learn more about any command-line options you see in this dialog in Section 3.