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.
what is the concept of memory models with regard to embedded C? i read the section in keil online manual,is there a bit more digestable explanation about it?
what is the concept of memory models with regard to embedded C?
Well, the memory models save you from having to specify a memory area for each and every variable you define.
Depending on the memory model, variables without a memory area specifier will go in the "default" area (data, pdata or xdata).
Of course, it may be tempting to use the large memory model and not worry about the memory areas at all - however, the '51 architecture has very significant differences in CPU time necessary to access the various memory areas, and the large memory model will put all variables in xdata, where access is slowest.