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.
I am a fresher i have completed B.E(ECE). I have recently attended GE interview, in that he asked me a question that which memory you have been using in your project...... The project i have done in my academics is Pc to Pc wireless communication in this we have used a Atmel At89c51 microcontroller and we have coded using C language using a keil cross compiler.Please can any body help me out how to answer this type of question and how many types of memory models are there, which is best suited memory model ............................ please reply soon thanks in advance.
The description of the memory models available in the C51 compiler can, of course, be found in the C51 manual:
http://www.keil.com/support/man/docs/c51/c51_le_memmodels.htm
Since the memory model itself only determines the default location of variables when no memory area is explicitly specified, there is not really a thing as a "best suited" memory model.
However, due to the unique properties of the '51 memory architecture, a good start is using the SMALL memory model, and explicitly place variables in (slower) XDATA memory when necessary. Since XDATA is best used for arrays, this should limit the number of explicit memory type specifications (i.e. the typical program has fewer arrays than single variables).