This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is Teridian M6531 Dose not support malloc

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

Parents
  • 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).

Reply
  • 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).

Children
No data