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
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.
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
Thankski
-----------------------------------
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
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.
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.---------------------------------------------------------------------------------------------------------
Hi,
is there any chance to see some kind of memory consumption summary? Like RAM, ROM percentage or something?
Thanks,
Chris.
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.---------------------------------------------------------------------------------------------------------
Ouch. Just found it. Thanks for that quick reply. Cant believie how blind I was.
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.
Hi Tommy,
can you give me an example?
I've attached a zip that contains an screen shot of using OFD55 utiliity, the resulting file (i2c2.txt), and the corresponding .map file.
Cool. Thanks.
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