• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » Build time
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Build time

Build time

  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Mar 30 2012 09:59 AM
    Intellectual695 points

    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 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Mar 30 2012 14:44 PM
    Guru51565 points

    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 Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 01 2012 08:52 AM
    Intellectual695 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 02 2012 08:52 AM
    Guru51565 points

    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 Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 02 2012 08:59 AM
    Intellectual695 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 02 2012 12:30 PM
    Guru51565 points

    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 Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 02 2012 12:34 PM
    Intellectual695 points

    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

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 02 2012 13:12 PM
    Guru51565 points

    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 Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 02 2012 13:29 PM
    Intellectual695 points
    '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
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 02 2012 14:43 PM
    Guru51565 points

    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 Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 03 2012 03:08 AM
    Intellectual695 points

    4555.proj.zip

    1. Long build time.

    2. LOng load time to EVM6472.

    3. The entry "main" is not identified. 

    Best regards,

    Yehuda


    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 03 2012 14:28 PM
    Guru51565 points

    I don't know what is in that .zip file.  CCSv5.1 and CCSv4 did not load any project from it.  But this doesn't matter that much.

    Because I don't want an entire project.  Please send just one source file, preprocessed like this.  That's all I need.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Dr. Yehuda Singer
    Posted by Dr. Yehuda Singer
    on Apr 04 2012 01:42 AM
    Intellectual695 points

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 05 2012 12:44 PM
    Guru51565 points

    I don't know what went wrong, or how.  But the last post is blank.  I'm still waiting for a preprocessed source file to work with.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use