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.

CCS/TMS320F280049: Slow build time in CCS, would like to check if it is normal or not.

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi expert,

My customer meet slow build issue (usually take 4 to 5 minutes for a re-build). This happens on almost all PC of their SW enginer and I'd like to know whether there are any issues here.

Code generation tool version: ti-cgt-c2000_18.1.1.LTS

IDE version: 9.0.1.00004

PC: Win10 X64

Do you need us to provide any log file for you to analyze?

Thanks

Sheldon

  • Sheldon,

    There are a number of factors that could contribute to a longer build time. Some of these may be PC configuration (number of cores, processor frequency, memory), size of project, company network settings, whether the project is local to the machine or on a network drive, any anti-virus running that may be interfering with the build, etc.  If the build time has always been the same and is consistent across multiple machines then I would think that one of the above factors are contributing. However if the build time used to be less and recently increased significantly then there might be something else going on, for which I would advise the customer to look closely into what may have changed in their environment.

  • Hi aartig,

    thank you for your reply, here is some more detailed condition of our project.

    size of project, company network settings, whether the project is local to the machine or on a network drive, any anti-virus running that may be interfering with the build, etc

    our project size is about 500M,  it takes about 6 minutes to complete rebuild action. it is so slow amazingly. the project  is local and is not linked to network when we compile, by the way, we use m.bat and makefile to build our project, I am not sure if it has some influence. the build time has always been the same and is consistent across multiple machines.

    so my question is like bellows .

    1, we have different version of PC, higher capacity or lower capacity, all has the slow rate of compile, It may not relate to PC configuration.

    2, do you have some advice that we can try on our side to modify the compiling rate?

  • kaining tan said:
    our project size is about 500M

    How exactly are you determining that your project is this size? I was more looking for an estimate of the number of source files in the project and whether they are large files in terms of lines of code.

    kaining tan said:
    we use m.bat and makefile to build our project

    Could you elaborate a bit more about this? Do you build from command line, not the CCS IDE? If you build from command line, what is the typical build command you use? Could you show us an example or screenshot please?

    kaining tan said:
    it takes about 6 minutes to complete rebuild action

    If you add the --verbose compiler option you should be able to observe the compiler and linker stages output as it goes through the build. From this, can you tell if the build is slow or stalling during a particular phase of the build?

    For instance:
    - does it take about the same amount of time to compile each source file? is it just overall slow for each file? 
    - does it stall mostly in the linker phase?
    - do one or two source files take much longer than others?

  • Hi Aartig

    thank you for your replying. here is more detailed answer about your question

    How exactly are you determining that your project is this size? I was more looking for an estimate of the number of source files in the project and whether they are large files in terms of lines of code.

     

    the size is all the project, if I just consider source files, the size is about 1.8M, and most part of our project is compilers of different versions. our source file is not so large, the largest source file in our project is about 2000 lines.

     

    Could you elaborate a bit more about this? Do you build from command line, not the CCS IDE? If you build from command line, what is the typical build command you use? Could you show us an example or screenshot please?



     

    we build in ccs ide through touching the build button. and the bat and makefile  will configure some compile and link preference such as compile path, link path, source file path, and output file name or something. it is not convenient to show the screenshot, but in the process of building and linking, always in the ccs ide.

     

    If you add the --verbose compiler option you should be able to observe the compiler and linker stages output as it goes through the build. From this, can you tell if the build is slow or stalling during a particular phase of the build?

    For instance:
    - does it take about the same amount of time to compile each source file? is it just overall slow for each file? 
    - does it stall mostly in the linker phase?
    - do one or two source files take much longer than others?

     

    I am not clear with the --verbose compiler option you mentioned, but I can observe the process of compile in console window, the compiling of every file is slow, including the MCU configuration files and our application files. and the link process is faster than compile a lot. the most time it takes is compiling time.

     

  • Couple more tests that could help further isolate the problem:

    1) Try disabling the indexer and see if that helps improve build time? Details on disabling indexer are in this page

    2) Could you check if the same slow build issue is seen when building example projects from C2000Ware? If yes, then try step 3 below.

    3) Extract the attached zip file and run build.bat from a Windows command prompt. This will remove the CCS IDE from the picture. Before running it make sure to edit paths in the batch file to point to your CCS installation directory and C2000Ware installation directory. Let us know if this is slow to build as well.

    4) Do you have Windows defender or other anti-virus running? Some anti-virus programs are known to interfere with CCS and cause problems.

    5) Can you try running your .bat and makefile from a command prompt instead of clicking the build button in the IDE? Basically invoke the same build command that CCS uses but call it manually from a command prompt.

    6) Could you install and try out the latest CCS v9.1.0?

    Finally are you able to share your project with us to see if the issue is reproducible in our environment? That could help isolate if it the issue is specific to your environment, PC configuration etc. or a broader issue. You can share the project via private conversation if you are reluctant to post it here on a public forum.

    3201.Example_2803xGpioToggle.zip

  • Hello,

    I just wanted to follow up and check if there was any update on this issue and if you had a chance to try out the suggestions in my previous post.

  • This issue is being discussed offline. We will post when there are relevant updates.

  • Discussions are continuing offline, but here is a current status update from customer's side. We believe the slowdown is either due to interference with anti-virus and/or slower access to files that reside perhaps on a network drive.

    1, After disabling Windows defender other anti-virus running,the compiling process will get 2 times faster than before. But the anti-virus is installed by our company, we can't uninstall or disable them, so do you have some other advice/

    2, when we put the project from other place to the folder whose path is like "E:\NoBackup\DEV\......", the compiling process will also be faster, at the same time, the defender and anti-virus are running. do you know the reason?

  • hi aartig

    about the reason

    slowdown is either due to interference with anti-virus and/or slower access to files that reside perhaps on a network drive.

    in fact, the place our former project locate or the new place our project relocate are all on our local drive, not at a network drive, the only difference is the path \NoBackup\DEV\ , I don't understand why it will affect the speed of compiling, now our all projects can be under the path \NoBackup\DEV\ to speed up.