Hai all,
Is init_mempool() necessary to use malloc? how do we use init_mempool() ,when & where.Pls reply me.
reg, yos
If you are using the RealView compiler, you should have a setting Heap_Size in the startup file. You must configure this parameter with the amount of heap space you need. The startup file should do the rest.
If you are using the old, and no longer supported, CARM compiler, there will be a init_mempool(). But for the RV compiler it shouuld be enough that you configure the heap size.
thanks for ur detailed explanation. what we have to do with GNU compiler in keil to use malloc?.
The fact that it's "in Keil" is irrellevant to the GNU compiler - you just have to do whatever the GNU documentation tells you!
See: http://www.keil.com/forum/docs/thread12738.asp