Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/08/99 23:02
Read: times


 
#625 - RE: Init xdata memory
Use debugger/monitor to see where that..
"xdata char i=0;"
is stored. I guess it would be in ROM (code memory). This isn't a bug, you usuallly don't want to keep large initialized arrays in RAM. In case you do, there is a compiler switch or memory model that will generate code to copy all initialized data from ROM to RAM. Think twice before you do this.
Your second example...

xdata char i;
i=0;

...is much better choice.

List of 2 messages in thread
TopicAuthorDate
Init xdata memory            01/01/70 00:00      
RE: Init xdata memory            01/01/70 00:00      

Back to Subject List