Please tell me How to check the used and available ram space

Hi,
Is there any files getting generated after the compilation of code which tells about memory in ram required for stack , varibles etc. Please please please tell me how to get info regarding the same.

viewtopic.php?f=19&t=514&p=1766&hilit=map#p1766