Post Go back to editing

How can I summarize the memory usage for my project?

Category: Software
Product Number: ADSP-SC573
Software Version: CrossCore Embedded Studio 2.11.1.0

How can I summarize the memory usage for my project?

I would like to know how much of each memory region I use (L1, L2 and L3 memory). Is there an easy way?

And is there a way to check how much stack and heap my application is using while running (I'm using ARM and both SHARC cores)?

  • Hi,

    How can I summarize the memory usage for my project?
    I would like to know how much of each memory region I use (L1, L2 and L3 memory). Is there an easy way?

    >> We recommend determining the memory usage via the Map File generated by the Linker by enabling the option 'Project: Properties: C/C++ Build: Settings: CrossCore SHARC Linker: General: Generate symbol map'.

    Map file shows the memory sections declared in the LDF, their start and end bounds and - most importantly - their free/used space. Using this map file you can determine whether there is perhaps a memory section that is being under-used that you could place more data into.

    This will produce a "project_name.map.xml" file in 'debug' folder the project, this can be open in CCES's internal browser, via Right-clicking on the map.xml in CCES project explorer > open with > Other > internal web browser.

    Also, please refer the below linked FAQ which might be helpful to you:
    How to view the linker map file in any other modern browser instead of internet explorer? 

    And is there a way to check how much stack and heap my application is using while running (I'm using ARM and both SHARC cores)?
    >> Stack and Heap are Run-time storage sections. There is no mechanism within the tools for monitoring the Stack usage in real-time. The only feature with stack is to set the stack overflow check in project option via -rtcheck-stack.

    We recommend you to refer the below FAQ for more details on Stack overflow detection.
    How to identify runtime stack overflow detection in CCES 

    Regards,
    Santhakumari.V