• 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 » Code Composer Studio » Code Composer Forum » viewing the size of the code memory used in a project
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    viewing the size of the code memory used in a project

    This question is answered
    abdul rafi
    Posted by abdul rafi
    on Jun 27 2009 07:20 AM
    Prodigy100 points

    hi,

     i am using code composer ver 3.2.3.6.4

    how to view the size of the code and different memories  used in a project  after compilation.

    waiting for the reply.

    thank you,

    abdul rafi

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Bernie Thompson TI
      Posted by Bernie Thompson TI
      on Jun 27 2009 18:11 PM
      Verified Answer
      Verified by abdul rafi
      Mastermind41680 points

      In your linker build options there is an option to generate a .map file, if you build with this option the map file that is generated describes your memory usage in detail.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ki-Soo Lee
      Posted by Ki-Soo Lee
      on Jun 27 2009 21:11 PM
      Verified Answer
      Verified by abdul rafi
      Guru117055 points

      Hi Abdul,

      Try using the ofd utility that comes with CCS.

      ex:

      > C:\CCStudio_v3.2\C6000\cgtools\bin\ofd6x file.out

      Also check out the CGT XML Perl Script Package. These scripts can run ofd for you and do additional parsing to present all sorts of useful data in a nice format

      Thanks
      ki

      -----------------------------------

      Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.

      Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.

      Having CCSv5 problems? Check out the CCSv5 Troubleshooting Guide

      Click here to track an issue. 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.
    • abdul rafi
      Posted by abdul rafi
      on Jun 29 2009 07:21 AM
      Prodigy100 points

      Hi Thompson,

      i am happy for your reply,

      could u please tell me the option to find the .map file in the compiler(code composer ver 3.2.3.6.4).for  the purpose of getting the size of different memories(code,xdata,idata) in the project.

      thank you,

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mariana
      Posted by Mariana
      on Jun 29 2009 09:44 AM
      Mastermind24340 points

      Hi abdul,

      Please right click in your project, select Build Options... , go to the Linker tab, Category Basic, you will see a field Map Filename (-m), put the name of the map file. The map file generated will have the space used in each memory. 

      - Mariana

       

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Christoph12992
      Posted by Christoph12992
      on Jul 01 2009 12:55 PM
      Prodigy140 points

      Hi,

       

      is there any chance to see some kind of memory consumption summary? Like RAM, ROM percentage or something?

       

      Thanks,

      Chris.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TommyG
      Posted by TommyG
      on Jul 01 2009 13:51 PM
      Genius12455 points

      The .map file has global summary of memory usage, as well as, module level data.

       ---------------------------------------------------------------------------------------------------------

      ACAT/DCAT Team

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Christoph12992
      Posted by Christoph12992
      on Jul 01 2009 14:11 PM
      Prodigy140 points

      Ouch. Just found it. Thanks for that quick reply. Cant believie how blind I was.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TommyG
      Posted by TommyG
      on Jul 01 2009 15:05 PM
      Genius12455 points

      Christoph,

      No worries, it takes a while to learn to read the .map file, but it has a lot of great information.  Another resource is a utility named ofd55.exe (for C5000 example) which is in the cgtools\bin folder of your preferred processor.  It parses the .out file and gives you a different look at your application.  Highly recommended.

      Cheers.

       ---------------------------------------------------------------------------------------------------------

      ACAT/DCAT Team

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Christoph12992
      Posted by Christoph12992
      on Jul 02 2009 04:11 AM
      Prodigy140 points

      Hi Tommy,

      can you give me an example?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TommyG
      Posted by TommyG
      on Jul 02 2009 08:12 AM
      Genius12455 points
      OFD Example.zip

      Christoph,

      I've attached a zip that contains an screen shot of using OFD55 utiliity, the resulting file (i2c2.txt), and the corresponding .map file.

       ---------------------------------------------------------------------------------------------------------

      ACAT/DCAT Team

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Christoph12992
      Posted by Christoph12992
      on Jul 02 2009 08:32 AM
      Prodigy140 points

      Cool. Thanks.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Abhay Kothari
      Posted by Abhay Kothari
      on Apr 12 2012 01:48 AM
      Intellectual435 points

      Hi ,

      i'm using a stellaris LM3S8962 with CCS V4 ,can u tell me how to use this tool for my application ,and where can i find the relevant documentation on this tool

      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