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.

how to speed up the compiling?



When I use CCS3.3 to compile my project,it cost about 3 hours.I choosed the -o2.I find the opt6x.exe took about 2hours.How can I finish the compiler with less time?

Could you help me?

  • Are you able to isolate it to a particular file/set of files that take longer to build than others? Is most of the time spent in the compilation (optimizer) stage or in the linker stage? How many files are in your project?

    Does it build faster if optimization is disabled? What is the version of code generation tools being used - you can check this by going into Help->Component Manager and expanding Build Tools and checking the version of the C6000 code generation tools.

  • Try using the option -oi0 to disable automatic function inlining.

  • Aarti said:
    Is most of the time spent in the compilation (optimizer) stage or in the linker stage? How many files are in your project?

    Yes,the opt6x.exe costs most of the time.

    Aarti said:
    How many files are in your project?

    Aarti said:
    Does it build faster if optimization is disabled?

    Yes,if no optimization ,such as -o2 ro -o3, is chosen. The compiler will success very quikly.But if without choosing optimization level,it will reduce the preformance of my project.

    Aarti said:
    What is the version of code generation tools.?

    The version of cg6x.exe is v6.0.27.

    Thank you very much for your help.what can I do? do I need to change the version of my cg6x.exe?

    My project is large.There are aboot 15 files.

    Aarti said:
    Are you able to isolate it to a particular file/set of files that take longer to build than others?

    Do you mean I should try to compile one file seperately?

  • Thank you  for your help .

    I have try like you said.Yes, it can speed up.But I find it seems to get a .out file without optimization.is it right?

    I use the code generation tools is v6.0.27.Can it choose the -oi100 ? Or only version 6.1.* or later can use -oi100 optimization levle ?

  • yan jie said:

    I use the code generation tools is v6.0.27.Can it choose the -oi100 ? Or only version 6.1.* or later can use -oi100 optimization levle ?

    v6.0.x codegen tools do support the -oi[size] option, so you can specify a threshold for automatic inlining.

     

  • Thank you very much!

    If -oi[size] is chosen,  Is the project optimized (like -o2 or -o3)?

  • -oi is useless without -o.  -oi will not turn on optimization, you must still use -o2 or -o3.  For instance:

    cl6x -o2 -oi0 file.c
  • Thank you very much!!

    Wish you happy every day!