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.
Tool/software: Code Composer Studio
Is there some trick to making the optimizer assistant work? When I run it, it successfully performs a compilation for each value of the selected build option, but it doesn't actually apply the value. Whatever value I previously set for the option is used and all the results come out the same. The output in the build console confirms that commands don't change.
I'm using CCS 8.2 with a TI ARM compiler. One of my colleagues with CCS 8.1 and a C2000 compiler had similar results with all the results coming out the same.
I am trying this out in CCSv8.2 and it is working as expected for me.
I run it and get the graph showing the results for the various options.
I then select the one I want and it gives me the option to apply it to my current build configuration.
Here I have selected "Apply this setting to 'Debug' ". And I can verify that this was applied to the Debug build configuration as in my case it was trading off performance vs size and I selected bar on the graph that mapped to setting -mf to 3
Are you selecting to apply the changes you your project? If you are and that is not happening is the project checked out? i.e. is it in source control and checked out for writing?
Regards,
John
I'm actually targeting the optimization level option, but the size vs speed one doesn't work either. The assistant produces identical sizes down to the byte at all 6 optimization levels, but there is a significant difference when I manually change it. From the build console I can see that it's passing only the original value to the compiler for every variation.
I just tried the apply option and it successfully modified my build configuration. So it looks like the assistant does know how to change the optimization level; it's just not doing it when producing the variations. After using apply, the assistant still gives the same size at every level, although that number is smaller than before, corresponding with the increased optimization level.