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.
Suppose I have declared in my C code that the memory model is LARGE, then when initialize the memory pool and allocate memory segment, should I specify the location of the memory segment? In other words, in the following two C code fragments, which one is correct?
#pragma LARGE ... unsigned char xdata *p; init_mempool (&XBYTE [0x2000], 0x400); p = (unsigned char xdata *) malloc (1000);
#pragma LARGE ... unsigned char *p; init_mempool (0x2000, 1024); p = (unsigned char *) malloc (1000);
Look at the description of init_mempool in the Manual - it tells you the types of the parameters.