Re: Dynamic memory allocation - Function pointers in nesC
2005-11-01 02:37:36 GMT
On Oct 29, 2005, at 11:32 PM, MANJUNATH wrote: > > Dear All, > > Just I wanted to understand about exact reasons for not to include > dynamic memory allocation and function pointers in nesC. > > One reason: Usage of function pointers makes deadcode elimination > difficult. > > I am not able to get any other reasons...... > > I would request you to please give me some pointers/details about > the same... > > I went through the paper "An holistic approach.." Short answer: it leads to more reliable code. Long answer: Here's a pointer (haha!): http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005- February/007712.html There's a difference between malloc() and dynamic allocation. nesC does not forbid dynamic memory allocation: there's nothing stopping you from writing a component that allocates a pool of memory and has(Continue reading)
RSS Feed