FLASH and RAM occupation

I'd need to know what is the memory occupation (FLASH and RAM) at the moment in a project compiled with e2studio.

Is it possible to get it from the data shown at the end of the build operation?

 

For example, now I can see these values:

text        data       bss        dec         hex 
4203174    0    3690604 7893778 787312

 

Thank you

Parents
  • Hello, stage.

    The build log files for each project will be found in (workspace)/.metadata/.plugins/org.eclipse.cdt.ui/ folder.
    You may able to use --print-memory-usage linker option in some GCC versions, but it is also put out to console, not listed in *.map file.

Reply
  • Hello, stage.

    The build log files for each project will be found in (workspace)/.metadata/.plugins/org.eclipse.cdt.ui/ folder.
    You may able to use --print-memory-usage linker option in some GCC versions, but it is also put out to console, not listed in *.map file.

Children
  • In that folder I have found my Project.build file (it has a .log file extension). If I open it with a text editor I find a lot of text that is not useful and, at the end, the same infos I wrote aboe (text, data,bss, dec, hex). Could you explain in details what you told about the linker option? Thank you very much.
  • Anybody can help me ? Thanks
  • Have you tried turning on map file generation for your project?

    1. Right-click on project in Project Explorer.
    2. Select C/C++ Build -> Settings in left navigation pane.
    3. Select Tool Settings tab in main Settings pane.
    4. Select Linker -> Output in Tool Settings navigation pane.
    5. Select Outputs the external symbol allocation information file (-map) checkbox.
    6. Click Apply and Close button to save.
    7. Rebuild project.

    ...although my checkbox is unchecked and I still get .map files.

    The .map file in the project build directory shows the linker memory allocation for your project.