[Tinyos-help] initializing pointers
David Gay
dgay42 at gmail.com
Thu Sep 13 20:40:45 PDT 2007
On 9/13/07, Kevin Klues <klueska at gmail.com> wrote:
> You can't allocate an array dynamically. All arrays must be
> statically allocated using constant sizes defined at compile time.
Well actually we don't do anything to *prevent* you from calling
malloc, assuming the libc for your platform includes one. We just
discourage it (because we think it's likely to impact reliability),
and provide compile-time-allocation alternatives... (essentially
generic components and the "magic" unique and uniqueCount functions)
David Gay
More information about the Tinyos-help
mailing list