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 --single_inline option in CCS

 

What is --single_inline option in CCS settings (Properties->CCS Build->MSP430compiler->Advanced options->Advanced optimizations->Inlinefunctions called once)

I am using msp430f2410. When i select this option i can get bit lesser code size..

I want to know what is this compiler option exactly( with example) and whether i can select all for my MCU ro reduce some memory?

 

  • All the compiler options like --single_inline are discussed in the compiler manual.  This particular option tells the compiler to always inline functions which are called exactly once.  

    vinoth s1 said:
    whether i can select all for my MCU ro reduce some memory?

    Feel free to use it.  I suspect that, in most cases, it will save a small amount of code size.  That said, there are probably a few cases where it causes a small amount of code growth.

    Thanks and regards,

    -George