We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
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?!
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
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.