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.

Building with Optimization Level 2 took a very very long time

Dear All,

I am building my application by using the following command line:

cl6x.exe .\*.c -@..file.config

In this file.config I have:

* Compiler options for CCM1 () */

-mv6600
--abi=eabi 
-O2
-ms0 
-g 
--no_intrinsics 
--define=_USE_COM_TX_BUSY 
--display_error_number 
--diag_warning=225 
--diag_wrap=off 
--gen_func_subsections=on 
--sat_reassoc=off 
--fp_reassoc=on 
--mem_model:const=far 
--mem_model:data=far 
--wchar_t=16 
--fp_mode=strict

I have the following problem:

Using O2 as optimization my build takes aroung 4 hours. Using Ooff (no optimization) I have it in 5 minutes.

Is it normal? Is there anything that could help to increase the speed?

Thanks

  • Which version of the compiler tools are you using? Do any of the source files have very large functions?
    If the compiler tools are an older version it might help to update to one of the newer versions to see if that helps.