This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What is optimized by CCS V3.3?

Hi,

    I am using Code Composer Studio V3.3. I would like to know what is optimized by the compiler if I use compiler specific optimization like -03. Is there any way to find out?

Thanks,

Krishna

 

 

  • For the particular Instruction Set Architecture, there will be a document called something like Optimizing C Compiler User's Guide.  This has information on how the compiler  uses the various optimization flags.

  • Thanks for your input Brandon.

    I perused the document that you mentioned earlier.

    Is there any option to set in the CCS wherin it can generate the optimized C code?

    -Krishna

  • Krishna,

    Are you asking where in CCS you can set these compiler options? If so, go to Project->Build options. The Compiler options are in the Compiler tab, under different categories. Basic optimization levels are available from the Basic category. Similarly, linker and DSP/BIOS settings are under those respective tabs.

  • Hi Aarti,

                   If I enable optimization, say -03, the compiler does the optimization and generates .out file. I just wanted to know whether I will be able to see what is optimized by the compiler (basically the optimized C code).

    -Krishna

  • You can generate listing files (.asm, .lst) with C source interleaved so you can see the assembly code generated by the compiler for C source lines. These options are under Feedback category of Compiler options. Another option that is useful is -os (generate optimizer comments). Check the Compiler Users Guide for the processor you are using for more details on these options.