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.
Could someone kindly explain to me how I can interpret the size of my program from the output generated by the C51 compiler. Data = 9.0 Xdata = 1717 Code = 2357 Thank you in advance.
"This program uses 9 bytes of data space (internal RAM), 1717 bytes of xdata space (external RAM), and 2357 bytes of code space." Refer to your other thread for the ambiguities in the terms "internal RAM" and "external RAM" http://www.keil.com/forum/docs/thread3888.asp "DATA" RAM is directly-addressable memory within the processor "core" (as opposed to IDATA, which is indirectly-addressable RAM within the processor "core") "XDATA" RAM is accessed using the MOVX instructions; it is notionally outside the processor "core" (hence "external"), although it may actually be fabricated on the same chip as the processor "core"!
Hi Drew and Andy, Does it also include the stack... I ask this because in my project...I have set aside 16 bytes for my stack and the total data=69.2 xdata=0 code=1409 Now does that 69.2 also include my stack in it or not? Rgds Raj Shetgar
It doesn't include the stack. How exactly have you "set aside" 16 bytes for your stack? Stefan
Hi Stefan http://www.keil.com/forum/docs/thread3892.asp Rgds Raj Shetgar
Assembler - ugh. I imagine you would be better to initialise SP to some value nearer the top of idata. If you are CERTAIN that you only need 16 bytes you could make it 0xEF. Stefan