hi, i have a simple question. be glad if anyone can help me. how do i check how much memory have i used for the lines of coding that ive written? thanks in advance wafi
Hi,
You could check the map-file. I've created seperate classes/areas for data and code (on our C167). First 64KB is not really used, second and third segment are for data, rest is for const/code. By checking the last used memory address in each area I know exactly how much data and const+code the app is using. Plus some extra bytes for the vectors and some idata in the first 64KB.
It's not optimal memory usage I know, but it makes life a bit easier and we're not low on bytes (yet).
Regards, Joost Leeuwesteijn