Hi, there, The malloc always allocate memory at the tail of the memory initialized by init_mempool(). How to make "malloc()" allocate memory from the beginning of the initialized memory? In details, suppose running following code fragment,
byte xdata *M1; byte xdata *M2; init_mempool (&XBYTE [0x10], 0x1000); M1 = (byte xdata *) malloc (500); M2 = (byte xdata *) malloc (100);