Hai all,
Is init_mempool() necessary to use malloc? how do we use init_mempool() ,when & where.Pls reply me.
reg, yos
To my knowledge the RealView compiler don't even have the init_mempool() function.
I know it exists for C51, but the ARM startup file will help you do what you need if you just configure the size of the heap.
thanks westermark, I am doing the project in ARM7.In the ARM startup file the heap is not there.only stack sizes are defined.what is the purpose of doing init_pool().why we need to call his? pls help me.
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