Am 19.08.2011 14:39, schrieb Sergio Campamá: > How can I check at runtime the amount of memory free in RAM?
there is an example for this. http://mspgcc.cvs.sourceforge.net/viewvc/mspgcc/examples/stackcheck/ it does two things: 1) marker at end of data. the marker can be checked so that it can verified that the stack has not overwritten variables. however this check is not 100% secure (e.g. if local variables are not initialized but space is reserved on the stack). this marker will not work if you use malloc. 2) fill the area between data and stack with "Z". that way you can see how much RAM was used when you do a hex dump of that memory. chris ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users