I am trying to find out the size of my program. How do I do this? I don’t have any memory issue, I just would like to know comparatively how big my program is. Then, is my program all that is flashed into the 128K space on the ADUCM360? How much overhead, if any, do I need to account for?
The map file describes how objects and the symbols they define are mapped into the memory defined by the .ld file.
You can type the following command in the additional options in the linker settings (Properties > C\C++ Build > Settings > Tool Settings > CrossCore GCC ARM Embedded linker > Additional Options). This will generate a map file for you in the debug folder. -Wl,-M=ARMcode.map
Also refer in the below thread for more information:https://ez.analog.com/message/247717
Thanks. This works.
I also found on the wiki how to create a .bin file. The .bin file is also stored in the debug directory. You can right click on it, select properties, and then view the size of the file.
I checked the two and I think they correlate.