Hi everyone,
I am using CCS 6.13 for my project. I was unable to make optimization option work. here is my setting in CCS:
it seems the configuration is done, but it did not seems to work. I had this issue when I used debug mode, and it worked when I used Release mode.( the execution time of one of my fuctions significantly reduced when it is working.). Now even if in Release model, it is not working any more. the performance advice file says the -g should be removed. as you can see in second image, no -g option there. following is the part of the performance advice file:
---------------------------------------------------------------------------------
;* *
;* processors.wiki.ti.com/.../C6000 *
;* *
;* or by searching for `Advice #<advice_id>`. *
;* *
;* Warning: This file is auto generated by the compiler and can be *
;* overwritten during the next compile. *
;* *
;******************************************************************************
;* User Options: --abi=coffabi --opt_for_space=2 --opt_for_speed=5 --opt_level=3 --preproc_macros=C:/eHDT_wk_bin_4/.metadata/.plugins/org.eclipse.core.resources/.projects/eHDT_DSP/com.ti.ccstudio.project.core/Release/symbols.txt --silicon_version=6740 --symdebug:dwarf
"C:/ti_CCS6/ccsv6/eclipse/configuration/org.eclipse.osgi/361/0/.cp/resources/scannerInfoCollector/main.c": advice #27003:
Detecting compilation with debug option -g, which hinders optimization. To
optimize, remove -g or compile with --optimize_with_debug_option.
"../src/Baudot.c": advice #27003: Detecting compilation with debug option -g,
which hinders optimization. To optimize, remove -g or compile with
--optimize_with_debug_option.
"../src/Baudot.c", line 114: advice #30009: If you know that this loop will
always execute at a multiple of <2> and at least <2> times, try adding
"#pragma MUST_ITERATE(2, ,2)" just before the loop.
"../src/Baudot.c", line 289: advice #30000: Loop at line 287 cannot be
scheduled efficiently, as it contains a function call ("_BdtDemod"). Try to
inline call or consider rewriting loop.
"../src/Baudot.c", line 293: advice #30003: Loop at line 287 cannot be
scheduled efficiently, as it contains complex conditional expression. Try to
simplify condition.
"../src/BdtDemod.c": advice #27003: Detecting compilation with debug option -g,
which hinders optimization. To optimize, remove -g or compile with
--optimize_with_debug_option.
--------------------------------------------------------------------------------------------------
what could prevent optimization option working?
your help is highly appreciated!
Ron