I am trying to write a script to find out the RAM-ROM usage (RAM = bss + data, ROM = rodata + text) of and object file. I tried with a GreenHills compiler tool that generates a report, but for some cases it doesn't work. Is there a way to find the memory sections to calculate the usage ?
0
votes
You tagged 3 distinct languages, which one you want to ask about?
– Yksisarvinen
When it does not work? Can you add it? And why python, windows and c++?
– Jose
Welcome to stackoverflow.com. Please take some time to take the SO tour and read about how to ask good questions. Also please read this question checklist.
– Some programmer dude
The normal way would be to check the linker output "map file". How to do that and where to find it depends on compiler.
– Lundin
As for your problem, the true usage can't be found out until you link your application (for example by examining the map file as mentioned).
– Some programmer dude