|
How check memory usage?Next Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Henk van Winkoop Posted 5-Jul-2008 22:43 Toolset C51 |  How check memory usage? Henk van Winkoop Hi, I'm new to this compiler. My application behaves strange using a AT89C51CC03. I would like to have some tips on how to check if data or xdata usage is not exceeding processor memory. I checked the SRC and M51 files but I can't figger it out. Thanks. H. | | Read-Only Author Hans-Bernhard Broeker Posted 6-Jul-2008 11:40 Toolset C51 |  RE: How check memory usage? Hans-Bernhard Broeker I checked the SRC and M51 files but I can't figger it out. That's pretty damn strange, given that the map file tells you so very clearly what the memory usage of the program is. It won't necessary tell you what the memory available on your target hardware is, of course --- that's your job to figure out from the datasheet. Best is if you tell the tools about the memory available. And BTW, there should never be a need to check SRC files. You check list files instead. | | Read-Only Author Stephen Phillips Posted 7-Jul-2008 05:45 Toolset C51 |  RE: How check memory usage? Stephen Phillips If you put the proper information for your processor into the project setup the compiler should complain to the point of not successfully linking your code if you exceed the memory available. I suggest as Hans-Bernhard Broeker that you check your data sheet for the exact processor you have, and then check your memory settings in your project information to be certain that those settings match the resources the processor has. Don't waste your time not putting exactly what you have in your project settings or the compiler will be made useless in giving you functional code. That's the first place to start. Stephen | | Read-Only Author Andy Neil Posted 7-Jul-2008 11:02 Toolset C51 |  Is this too obvious? Andy Neil At the end of the build, you should see something like the following in the Output Window:
Program Size: data=54.1 xdata=0 code=2552
"HELLO" - 0 Error(s), 0 Warning(s).
Isn't that exactly the information you require?!
| |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|