Rumor has it that malloc() will work, just not very well.
I haven't tried it.

For math functions, MSP for exapmple has:
     opt/msp430/msp430/include/math.h
and I'm sure AVR has similar but I don't have it
loaded on the machine I'm using. Presumably those
functions are supported by the standard math lib (-lm)
for the controllers.

MS

Shikhar Sachan wrote:
> hello users,
> 
> I wanted to inquire about dynamic memory allocation which I know is
> not a good idea using the malloc(). A searched a lot but could not get
> hold of the TinyAlloc component or the memalloc interface that I could
> use. I guess it is not present in T2 or probably T2 has got a
> different way for memory allocation.
> 
> Also I wanted to know how I could use functions like sqrt. I know of
> codes that could find out the root. However I wanted to know if there
> are already predefined functions which I could use by including
> Microcontroller Library Header files.
> 
> 
> Thanks for the help...
> 
> Shikhar
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to