Is there a really quick, at-a-glance way to see how much ROM and RAM a particular application requires?
Have you tried the Linker listing file, aka the mapfile?
Yes, but it's not at all at-a-glance. What I'd like to see is a linker output summmary that looks like this: ddd bytes used in data RAM iii bytes used in idata RAM ttt bytes total in internal RAM xxx bytes used in xdata RAM ccc bytes used in ROM I'm not so much concerned about the usages in each module -- I can used the mapfile for that. More, I'd like to summarize the total RAM and ROM requirements for a given application, and be able to see at-a-glance what effect a particular change has. For example, different memory models, or different configurations in my code. I'd prefer not to have to wade through the map file for this info ... Regards,
Write your own program that analyzes mapfile and generates the summary you want. It should not be very difficult at all. 'Run user program after make' feature could be of use here. Regards, Mike
Good idea -- perhaps a PERL script could do that nicely. Regards,
The tricky bit is determining the precise format & layout of the map file, to be sure that your script will work every time! The mapfile format is undocumented (or, rather, the documentation is unpublished). I know; I've tried it - try searching the forum for "mapfile" or similar.