#4481 - regularkid - Tue Apr 01, 2003 8:14 am
Hey, guys. Since i've been having memory problems lately (most of you have probably read my posts), I decided I needed a way to figure out how much memory I am using. So I think I need to write a memory manager. My first idea is to have a "dummy" file compiled at the end of my makefile. This file will have nothing but two variables in it. One that is a normal u8 and another that is a const u8. So, my thinking is that the compiler will put these at the end of my stuff in RAM and in ROM. So, then all I should need to do is read the address of each of these and subtract the starting address of RAM and ROM and viola! I will know how much memory is being taken up in each! Thoughts? Ideas? Comments? Thanks!
_________________
- RegularKid
_________________
- RegularKid