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.

CCS - Different Optimization Levels for different routines or files?

Other Parts Discussed in Thread: MSP430F2272

Hello,

Is there a way to have different compile specifications for different functions or files? Specifically I am looking to specify --opt_for_speed differently for different functions.

 

Thanks!

-Justin Reina

 

*I am using CCS 4.2.1 with the MSP430F2272.

 

  • Hi Justin,

    I am afraid that it is not possible in CCS in graphic environment. Nevertheless, you can compile your modules manually in command line using CCS compiler. You should create your custom makefile. For each module (module not function) you can specify different options. You will build a prorgam from console.

    Although it can be done it is not recommended to use different options for modules that will be linked in one program. You may obrains modules that are incompatible.

    Regards,
    Piotr Romaniuk, Ph.D.
    ELESOFTROM

  • Bummer!! I was thinking that it would be something along those lines...

     

    Thanks,

     Justin Reina

**Attention** This is a public forum