On Thu, Aug 19, 2010 at 10:01 PM, Xiaohui Liu <[email protected]> wrote:
> Hi,
>
> For the following structure
> struct foo{
> uint8_t foo_a;
> uint32_t foo_b;
> };
> what is the actual layout after compilation on a TelosB platform? Will it
> be packed? Thanks.
>
unless explicit package is requested no packing is done. The struct will
be laid out
byte
pad
32 d
32 c
32 b
32 a
The 32 bit uint32_t will be laid out in little endian order on a 16 bit
boundary.
eric
>
> --
> -Xiaohui Liu
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help