I am new to arm assembly and i am trying use or implement malloc in ARM Cortex m0+. I did not find any information about how to pass argument, call or get address of allocated address of allocated memory via malloc. Is there any example show that how to use malloc in arm assemly or any resource?
I need to implement linked list
You don't need malloc to do that.
But, again, why would you want to do linked lists from assembler?
In other words: why are you not doing this in C or C++ ?
It is my assignment
Kingofthelosers said:It is my assignment
to "do linked lists", or to use malloc() ?
Before thinking about implementing a linked list in assembler, do you understand the basic principles of how linked lists work - irrespective of the language used for implementation?
https://en.wikipedia.org/wiki/Linked_list
Andy Neil said:You don't need malloc
https://www.avrfreaks.net/comment/196811#comment-196811
https://www.avrfreaks.net/comment/1457826#comment-1457826