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.

Summary of per-file optimization settings when per-file overrides are used

Hi all,

In CCS, optimization can be set globally for all files by right clicking on a project->Properties->CCS Build->Arm Compiler->Optimization (correct for the MSP432 we use, I guess it might be different for different controllers).

This project wide setting can be overriden for any given file in the project by right clicking on the file and settings its optimization as described above.

In a large project, it can be hard to keep track of which files have overrides (for optimization or other build settings).

I see that files that have ever had overrides get a little key in their icon, but if you create an override, then remove it, the key icon seems to stay permanently, so this doesn't necessarily help.

Is there a way of generating a summary indicating which files have build settings that are different to the global build settings (and list out what those differences are)?  The only way I can find to do this currently is to manually look at the properties of each file - time consuming with nearly 100 files in the project....

Thank you!

Julian

  • Hello Julian

    I see that files that have ever had overrides get a little key in their icon, but if you create an override, then remove it, the key icon seems to stay permanently, so this doesn't necessarily help.

    yes this is quite confusing. It is possible to clear that key icon if no file specific options have been set for that file. Right-click on the file in the Project Explorer and select 'Resource Configurations -> Reset to Default'. This will revert any file specific options back to the default AND also clear the icon.

    Is there a way of generating a summary indicating which files have build settings that are different to the global build settings (and list out what those differences are)?  The only way I can find to do this currently is to manually look at the properties of each file - time consuming with nearly 100 files in the project....

    Unfortunately there is not a clean way to do this as far as I know. The .cproject metadata file would have all that information but going through the file is a bit unwieldly....

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/313853/view-file-specific-configuration-options/1091901#1091901

    Thanks

    ki

  • Thank you Ki,

    When I have time I might whip up my own little tool to parse the .cproject file.  But for now, just searching .cproject for the following strings gets me a long way.

    name="Optimization level (--opt_level, -O)"

    and

    name="Speed vs. size trade-offs (--opt_for_speed, -mf)"