c - Simple nested loop not pipelining on TI C64x+ -


the following code not pipelining when compiled on c64x+:

void main () {     int a, b, ar[100] = {0};      (a = 0; < 1000; a++)         (b = 0; b < 100; b++)             ar[b]++;      while(1); } 

my ide (code composer v6) gives following message inner loop: "loop cannot scheduled efficiently, contains complex conditional expression. try simplify condition."

the problem seems nested loop, can't find more information optimizing 1 simple this.

has solved similar issue before?

-- additional information --

  • processor: tms320c64x+

  • compiler: ti v8.0.3

  • compiler flags:-mv6400+ --abi=eabi -o3 --opt_for_speed=4 --include_path="d:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.0.3/include" --advice:performance -g --issue_remarks --verbose_diagnostics --diag_warning=225 --gen_func_subsections=on --debug_software_pipeline --gen_opt_info=2 --gen_profile_info -k --c_src_interlist --asm_listing --output_all_syms

  • linker flags: -mv6400+ --abi=eabi -o3 --opt_for_speed=4 --advice:performance -g --issue_remarks --verbose_diagnostics --diag_warning=225 --gen_func_subsections=on --debug_software_pipeline --gen_opt_info=2 --gen_profile_info -k --c_src_interlist --asm_listing --output_all_syms -z -m"dsp.map" -i"d:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.0.3/lib" -i"d:/ti/ccsv6/tools/compiler/ti-cgt-c6000_8.0.3/include" --reread_libs --warn_sections --xml_link_info="dsp_linkinfo.xml" --rom_model

removing --gen_profile_info compiler flags solved issue. loops have been splooped.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -