On Apr 13, 2008, at 7:32 AM, fatima zohra wrote: > hello, > while reading the TinyOS programmation manual here, i came across > this important Hint : > > Programming Hint 14: Never, ever use the "packed" attribute. > > > can anyone explain to me why is it so important to notice this > problem ?? is it a big issue if we use packed attribute ?
Because if you used the packed attribute, words will not necessarily be aligned on word boundaries. Some architectures (such as the MSP430 of Telos nodes) require words be aligned on word boundaries, or return undefined results. So if you use the packed attribute, you could have code that cannot work correctly. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
