Build time

We transfer an application from Ubuntu on a PC to EVM6472 in BIOS.

The build time is very long. We use thesoftware tools version 7.31.How to reduce the build time? The same application is built very fast on other platforms.

Best regards,

Yehuda 

13 Replies

  • Your description of the problem doesn't have much detail.  It is hard to know what to recommend.  You may have this linker problem.  Make sure you are not doing too much inlining.  That can create very large functions which can take a long time to compile.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Dear George, 

    Thank you for your answer. Yes, the code includes many inlining code. But the same code compiles very fast by a factor of 8 by similliar development systems.

    The code is confiodential but we have an NDA with TI.

    DO you want to take a look at it?

    Best regards,

    Yehuda

  • In reply to Dr. Yehuda Singer:

    Dr. Yehuda Singer
    DO you want to take a look at it?

    The problem is probably in how you build the code, and not the code itself.  Thus, looking at the code is unlikely to be helpful.

    Please disable all optimization and build again.  Does that improve build time?  If so, by how much?

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Dear George

    I do not set any optimization. The size of the executable including debugging information is around 40MB. 

    If the softwaretools are based on GNU, why other GNU tools are much faster?

    Best regards,

    Yehuda

  • In reply to Dr. Yehuda Singer:

    Are you using the TI compiler for C6000?  If so, that compiler is not based on GNU.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    Dear George, 

    I am using the software tools 7.31.

    I use:

    1. The basic options: 64+ --abi=eabi.

    2. C++.

    3. C files are considered as C++.

    Best ergards,

    Yehuda

  • In reply to Dr. Yehuda Singer:

    For one source file, please show me exactly how the compiler is invoked.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    'Building file: ../SOURCE_FILES/RISC_CPU_FILES/pic.cpp'
    'Invoking: C6000 Compiler'
    "C:/Program Files/Code Composer Studio/ccsv5/tools/compiler/c6000/bin/cl6x" -mv64+ --abi=eabi -g -O0 --extern_c_can_throw --exceptions
    --rtti --cpp_default --gcc --define=SC_LITTLE_ENDIAN --define=SC_INCLUDE_FX --undefine=SC_MAX_NBITS --undefine=SC_FX_EXCLUDE_OTHER
    --undefine=SC_LONG_64 --undefine=SC_ENABLE_OBSERVERS --undefine=WIN32 --undefine=SC_ENABLE_OBSERVERS --undefine=SC_BIG_ENDIAN 
    --undefine=PURIFY --include_path="C:/Program Files/Code Composer Studio/ccsv5/tools/compiler/c6000/include" 
    --include_path="C:/Program Files/Code Composer Studio/bios_6_32_05_54/packages" 
    --include_path="F:/TI demo Version 0.6/RISC_Demo_EVM6472_Version_0.65/SOURCE_FILES/systemc_2.2.1/src"
     --include_path="F:/TI demo Version 0.6/RISC_Demo_EVM6472_Version_0.65/SOURCE_FILES/systemc_2.2.1" --display_error_number --diag_warning=225
     --abi=eabi --preproc_with_compile --preproc_dependency="SOURCE_FILES/RISC_CPU_FILES/pic.pp" --obj_directory="SOURCE_FILES/RISC_CPU_FILES"
     --cmd_file="./configPkg/compiler.opt"  "../SOURCE_FILES/RISC_CPU_FILES/pic.cpp"
    
    
    Thanks and best regards,
    Yehuda
  • In reply to Dr. Yehuda Singer:

    Please show the the contents of the file ./configPkg/compiler.opt.  That file contains additional compiler options.  I'm not sure what will be in it, but I doubt it will contain any clues as to why the build takes so long.

    So, please supply one of your source files, preprocessed as described here.  I'll try compiling it with a few compilers I have on hand.  Presuming I also see a compile time difference, I'll file an issue in the SDOWP system.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to George Mock:

    4555.proj.zip

    1. Long build time.

    2. LOng load time to EVM6472.

    3. The entry "main" is not identified. 

    Best regards,

    Yehuda