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/TMS320F28374S: #ifdef / #elseif / #else / #endif doubt in a large *.c file

Part Number: TMS320F28374S

Tool/software: Code Composer Studio

Hi,

Just one doubt about #ifdef / #elseif / #else / #endif

#ifdef DEF1

Code A;

#elseif DEF2

Code B;

#else

Code C;

#endif

Usually if DEF1 is not defined, Code A will be in dark background. But in a *.c with over 8000 lines codes, Code A, Code B and Code C, no one is in dark background. After compiling, the logic is correct. 

What could be the issue. 

Thamks a lot.

Br, ordan 

  • Jordan,

    The scalability feature of the editor will disable certain features when a file is above a certain size.  Typically it will prompt you when you open a very large file.  I believe the default is 5000 lines when the settings will kick in.  It does this so as to not slow down the overall environment.

    You can control the settings in the preferences dialog.  You will need to click on show advanced settings at the bottom:

    You could try bumping this up to 10000 and see if the issue goes away and if the performance is ok just leave it like that.

    Regards,

    John

  • John,

    Thanks a lot.

    Before the post, I already asked customer to check the line of the file, and asked them to reduce it.

    Br, Jordan