Is there a really quick, at-a-glance way to see how much ROM and RAM a particular application requires?
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.