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.

optimization levels

Hi,

I have just installed ccs4 free licence with EVM boards. I imported legacy ccs3 projects then set up my target - EVMOMAPL137.

I observe diferences between optimize levels in CCSv3.3 and CCSv4. Using CCSv3 I build my programs with Opt Level: File(-o3) and

Optimize for Speed (-mf) 5. I cant build my program using  CCSv4 with optimization level (--opt_level, -O) 3. I receive linking errors:

run placement fails for object ".swi", size 0x2c(page 0). Available ranges: IRAM size: 0x40000 unused: 0x47 max hole: 0x20 for example.

Errors disappear after using optimization level 2. Could you compare optimization level 3 implemented in CCSv3.3 and optimization level 2

and 3 implemented in CCSv4 ( speed and file size). By the way I cant find in CCSv4 optimize for speed (-mf) option.

Best regards.

  • Adam,

    The Optimize for Speed -mf or --opt_for_speed option is located in the Optimizations options group for the newer compilers that are included with CCSv4.  The Optimizations options group is located about half way down the group list on the left.  I agree that it is odd that the optimize for size option is listed in the basic group but the optimize for speed option is not.

    I am going to move the thread into the compiler forum to see if anyone can comment on the optimization differences between compiler versions.  One thing that will be needed is the compiler version that you are using in CCSv3.3.  I am assuming you are on a 6.1.x version in CCSv4 (I am using 6.1.16 in my 4.1.3 install.

    Regards,

    John

     

  • John,

    I am using 6.1.15 tools in CCSv4 and 6.1.9 in CCSv3.3. I found optimize speed option set to 5 like in my CCSv3.3 projects.

    Regards,

    Adam

  • John,

    I found solution, I use optimization -o3 in release mode, in CCSv3.3 I use debugging model "no debug".

    CCSv4.4 Import legacy CCSvv3.3 Project doesn`t import debugging model , after I set up debugging model manually

    "suppress all symbolic debug generation (--symdebug:none)" I built my program successfully with

    opt. level 3. My program after optimalization fills allmost all IRAM and there is no place for debugging data.

    Regards,

    Adam