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.
Hello,
I am working with Teridian M6531 and I am trying to use memory allocation in my program. I was reading other forums and got the idea that init_mempool function should be used while using malloc. I did use that funtion too. But I am still not able to use malloc. It gives error when I use init_mempool function and it also gives error when I use malloc without init_mempool.
If anybody found such problem and got some solution, please let me know
Regards, Shrenik Mehta
Yes, of course they do - and if you allocate them dynamically they will use even more of your RAM! (dynamic allocation adds an overhead).
"I would have broke those structures in smaller once."
Eh??
One 100-byte structure occupies exactly the same amount of RAM as ten 10-byte structures (C51 adds no padding).